Building accents

morten's picture

Hey all,

I have downloaded Ben Kiels great BuildingAccents-scripts, but I can't get it work properly.
(Maybe I'm a tech-idiot ;-) but are there somebody who can help me with this issue:

The script only create new characters (composites) but it doesn't place the accents over these characters. Why not??
Where do I exactly place the anchors on glyphs and accents, to get this script works correctly?

Thanks in advance!


satya's picture

Put all you accents on their exact glyph cells(,center align)and also make sure you have assigned unicode values to them. Run the Macro.

morten's picture


Well, it's still don't working...and what about the anchors?? Where shall I place them?
Thanks for helping!


Christian Robertson's picture

I've found that the "Generate Glyphs" command in Fontlab is as useful as anything. I keep a list of characters in a text file and paste them into the Generate Glyphs dialog. The hard part is placing the anchors. I published a simple script to place commonly needed anchors here:

Christian Robertson's picture

To explain a little more, here is my process:

1. Generate common anchors using script
2. Do any necessary tweaking to anchors (sometimes you don't want them centered)
3. Select the Glyph > Generate Glyphs... command from the menu.
4. Paste glyph list into field.
5. Voilá

Here is a good place to start for a list of glyphs to paste into the input field:

Aacute Abreve Acircumflex Adieresis Agrave Aogonek Aring Atilde Cacute Ccaron Ccedilla Dcaron Eth=Dcroat Eacute Ecaron Ecircumflex Edieresis Egrave Eogonek Iacute Icircumflex Idieresis Igrave Lacute Lcaron Nacute Ncaron Ntilde Oacute Ocircumflex Odieresis Ograve Ohungarumlaut Otilde Racute Rcaron Sacute Scaron Scedilla Tcaron T+comma=Tcommaaccent Uacute Ucircumflex Udieresis Ugrave Uhungarumlaut Uring Yacute Ydieresis Zacute Zcaron Zdotaccent aacute abreve acircumflex adieresis agrave aogonek aring atilde cacute ccaron ccedilla dcaron d+macron=dcroat eacute ecaron ecircumflex edieresis egrave eogonek germandbls hungarumlaut iacute icircumflex idieresis igrave lacute lcaron nacute ncaron ntilde oacute ocircumflex odieresis ogonek ograve ohungarumlaut otilde racute rcaron sacute scaron scedilla tcaron t+comma=tcommaaccent uacute ucircumflex udieresis ugrave uhungarumlaut uring yacute ydieresis zacute zcaron zdotaccent

Note: There are several lesser known features available in the Generate Glyphs dialog. For example, t+comma=tcommaaccent joins t and comma into the tcommaaccent glyph. Fontlab knows which glyphs to join for all of the other characters. To create ligatures with Generate Glyphs simply type glyph1name_glyph2name=finalglyph name. For example f_f=ff will create an ff ligature.

Also note that generating the diacritics is often the last thing you want to do before you master the font. It makes it easier to manage things if you don't have a ton of diacritics hanging around.

morten's picture


Thanks for guiding me – now it works!


filip blazek's picture

Be careful, when using Generate Glyphs in FontLab, "tcaron", "dcaron", "lcaron" and "Lcaron" can't create correct glyphs. All those four glyphs must have a special version of caron looking like a steep acute or an apostrophe. You could create "caron.alt" first and then build "d+caron.alt=dcaron" etc.

Jos Buivenga's picture

It is a bit weird but the T and t with a cedilla are actually Tcommaaccent and tcommaaccent, so the input shoud be like this:


The T an t with commaaccent can be generated with this:


benkiel's picture

I wrote my set of accent building scripts before the release of FL5, which does let one build things quicker with how Christian outlined the Generate Glyphs dialog. You won't have the control over exactly how things are placed, but it is easier to use.

However, if one is still interested in using the set of scripts, two things need to be done before running the Build Accents script. Anchors need to be placed on both the accent marks and the base glyphs for the accented glyphs. Anchors need to be named for where they are on a glyph and where the accent is to attach. For example, to have the script build an eacute, an anchor needs to be placed on the e at the location where one wishes the acute mark to be. This anchor can be called anything, but I usually call it 'top', as it is for accents that attach above the glyph. Then on the acute mark, a corresponding anchor, also called 'top', need to be placed where one wants the acute to attach to the anchor on the e. This would be at the visual center of the acute and at the bottom of the acute. The easiest way to think of this is that the anchors are the points where the e and the acute will snap together. Because placing anchors can be tedious, there is a Place Anchors script for placing anchors on the selected glyphs in the font window. (Removing anchors is also tedious, so there is a Remove Anchors script also).

Hope that helps anyone who may be interested in using those scripts.

Jens Kutilek's picture

FL5, which does let one build things quicker with how Christian outlined the Generate Glyphs dialog. You won’t have the control over exactly how things are placed

Yes, you have! You can control where the accents are placed if you add anchors to your base glyphs and accents and name them right:

The name of the anchor on the accent must be the name of the anchor on the base glyph prefixed with an underscore.

E.g. you have an "o" with a "top" anchor and an "acute" with a "_top" anchor. Now writing "o+acute=oacute" into the "Generate Glyphs" dialog will place the accent according to your anchors.

Another way to generate accented glyphs using this anchor naming scheme: Select your base glyph in the Font window, open a Preview window and there go to the tab called "Anchors". The Preview window will show you all glyphs you can compose from your selected base glyph. Generate them by clicking on the "Â" Icon.

cf. FL manual from page 504 ...

Syndicate content Syndicate content