check Kerning

RoboFont Forums Help / General check Kerning

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Thom 7 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5494

    Thom
    Participant

    Hi,

    I want to improve my script for generating images of sample texts in (tiny)DrawBot directly from the ufo.
    Is there an easy way to check if two glyphs has a kerning value?

    thanks

    #5496

    frederik
    Keymaster

    There is the kerning attribute of a font
    see http://www.robofab.org/objects/kerning.html

    f = CurrentFont()
    
    print f.kerning[('A', 'V')]
    

    If there is group kerning, maybe you should flatten the kerning dict in a temporary dict.
    If the kerning is only available in the features, best is to compile the font it and read it back into RoboFont.

    good luck!

    #5498

    Thom
    Participant

    Merci.
    Indeed, there is some group-group and glyph-group and glyph-glyph kerning. So no way to get directly a value out the ufo?
    Will try the temp dict.

    Thanks Frederik!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.