SVG font - diacritics


#1

I’m wondering if there is any way to automatically generate accented letters in SVG (iColor) font? Or they all need to be written by hand one by one?


#2

That is not done automatically. Depending on the setup this might not be possible at all because some setups can only have one image but no components. Can you show what you are trying to do?


#3

It is just the usual handwritten stuff - scanned, removed bg, copied to glyphs.


Well, since it is definitely 2 images per one glyph for diacritics, the answer is “no” :frowning:
The only option is to draw them one by one then… Correct?


#4

You could decompose the accented letter in the ccmp feature and use make positioning with the combining accents. This works fine in browsers, for Adobe apps you need to activate the World Ready composer to make that work.


#5

Thank you Georg, I’ll try to figure out how it works!


#6

I’m trying to figure out how it works…
A couple of questions:

  1. World Ready composer - I can’t find it in Illustrator. Is it “on” by default now (v. 23.0.4)?
  2. If it is, here is what I’m getting as an output
    10
    No matter what coordinates I set for anchors - the accents do not move.
  3. I’m sure I’m missing something in the code.
    This is what I have in Prefixes:
    markClass [acutecomb ringcomb] <anchor 0 163>; @MARK_TOP_CENTER;

And this is what I have in ccmp

lookup mark {
    pos base [a n] <anchor 310 163> mark @MARK_TOP_CENTER;

    pos base [c e g o] <anchor 290 163> mark @MARK_TOP_CENTER;

    pos base [idotless] <anchor 80 163> mark @MARK_TOP_CENTER;
} mark;

#7

You don’t need to write the mark code yourself. Just add anchors as described in this tutorial. https://glyphsapp.com/tutorials/mark-attachment


#8

Oh, you mean just set the anchors and have the comb marks with corresponding anchors as well?

But this is what is normally done for any typeface, correct? Just in this case there won’t be accented letters in the font but you’ll be able to construct them manually typing letter+an accent?


#9

The problem it that most texts use precomposed glyphs. So Aacute instead if A + acutecomb. If you don’t like to draw those manually, you need to do sub Aacute by A acutecomb; in ccmp feature.


#10

Thank you, Georg! That’s exactly what I need.