How to access/ fix components order

Ramiro EspinozaRamiro Espinoza Posts: 541
edited April 19 in Font Technology
Hi there,

I've recently been told that having masters with compatible components orders was important for the generation of variable fonts. Can you tell me how to access or check the orders of components in each glyph? I wasn't aware of this issue.

Thanks in advance.

Comments

  • In Robofont, within the inspector, components, the order in that list is the component order. Make sure you activate “display component indexes” in Glyph window.
  • Ben KielBen Kiel Posts: 17
    Also, Prepolator
  • @Ben Kiel  Really? I've noticed of course Prepolator checked contours orders but not components order.

  • Ben KielBen Kiel Posts: 17
    edited April 19
    @Ramiro Espinoza actually, I was wrong about Prepolator — I was pretty sure it did, but I'm not seeing it now.
  • PabloImpallariPabloImpallari Posts: 500
    edited April 19
    You can also inspect the .glyf files inside the .ufo in a text editor, or via scripting.
    Components are stacked like this:
    <outline>
        <component base="f"/>
        <component base="l" xOffset="290"/>
    </outline>
  • John HudsonJohn Hudson Posts: 1,092
    Also note, with regard to component order, that it is good practice in the case of precomposed diacritics for the base letter to be the first component. This has implications for inherited metrics.
  • Georg SeifertGeorg Seifert Posts: 448
    Glyphs.app can help in various ways to ensure compatible outlines/components. There is a tutorial about that, too: https://glyphsapp.com/tutorials/multiple-masters-part-2-keeping-your-outlines-compatible
  • There is a handy command within fonttool’s varLib to check the contour and component structure of glyphs across multiple fonts:
    $ fonttools varLib.interpolatable font1 font2 …

Sign In or Register to comment.