I’ve come quite far spacing my font now, but I don’t quite know what to do with the diacritic marks. They are used in the composites and placed correctly above the letters, but I don’t guess they’ll ever be used on their own. So do I even have to space characters like grave, acute, dieresis … at all?
And if so, are there any rules about how to do this right?
The marks category contains all known marks. Several are non-spacing combining marks which should have a zero advance width. You can hover over the glyphs to see a hints about this:
The diacritics are meant to be placed above the preceeding character so the placement should be such that it is in the correct position above a lower case letter preceeding it.
Of course lower case letters are all different sizes and different heights and what if it is preceeded by an upper case character, so you can only get it approximately correct.
That is where anchors come in.
There are two types of anchor, base and mark.
When you add an anchor to a base glyph it should be a ‘base’ type anchor, when you add an anchor to a diacritic mark it should be a ‘mark’ type anchor.
Then if that diacritic mark character is used following the character which has an anchor of the same name the rendering program will line up the two anchors so that they are in the same position, it does this by moving the character with the ‘mark’ type anchor, the character with the ‘base’ anchor does not have it’s position altered.
Two consecutive glyphs with ‘base’ anchors of the same name will have no effect, their positions will not be altered. Two consecutive characters with ‘mark’ type anchors of the same name will have no effect and their positions will not be altered.
It is also possible to add mark and base type anchors to combining diacritics so that they can stack on top of one another.
In this way it is possible to get the diacritic marks to always position themselves in just the right position for each different character.
@PJMiller - This is not exactly what I was as asking about, but it’s very interesting. I didn’t bother finding out about anchors yet because I didn’t think I’d need that feature. I used “Complete Composite” to create my characters with diacritic marks and it worked really well. So what I don’t quite understand is what to use the anchors for when I have my characters with diacritics already built.
The combining diacritics have zero advance width and are placed after the character they are meant to accent. Without anchors they are in a fixed position which is correct for some characters but not for others, with anchors they can be made to move to the correct position for any character.
I’m sorry, I guess I still don’t get the sense of it.
Does this mean using anchors is an alternative for manually creating all the characters with diacritic marks?
It would be better to have the accented characters and the combining diacritics. But just having the accented characters will be OK.
If you have the combining diacritics as well the user can accent characters which have no accented character in Unicode, for instance in my wifes language they use a lower and upper case ‘g’ with a tilde which isn’t in the Unicode standard but if the font has combining diacritics then that isn’t a problem you just put the combining tilde after the g and it places itself above the g.
Ah, now I understand! It definitely makes sense for a font that’s supposed to be used in all kinds of languages. I just tried that g with the tilde with Arial and it’s really misplaced.
Thanks for your patiences, I’ve learned something new now!
There seem to be 2 sets of the common diacritics - modular spacing and combining. I understand the combining are for when you are adding it after you have typed the letter. Does this mean you have to use the modular spacing diacritics for the composites in the font?