Visitar URL original
[Builder] familyName entry doesn't call fontmake's family-name argument anymore · Issue #1105 · googlefonts/gftools · GitHub
Skip to content

[Builder] familyName entry doesn't call fontmake's family-name argument anymore #1105

Open

Description

@RosaWagner

Before, the familyName entry in the config.yaml file was used to create subfamilies defined with their dedicated instances in the glyphs file.
Eg: LexendDeca[wght].ttf in https://github.com/googlefonts/lexend
Now it doesn't work, it only builds the main VF.

Activity

  1. RosaWagner commented on May 13, 2025

    @RosaWagner
    ContributorAuthor

    Otherwise I see these new argument in the doc: fvarInstanceAxisDflts but no additional instruction on how to use it.
    Or this argument extraFontmakeArgs could work too?
    (asking cause whatever I try doesn't work)

    If trying to export a condensed subfamily, using the recipe thing, the operation ends in a font called 'My Font Condensed' but the instances in the fvar are wdth=100 and not 75

    - operation: buildVariable
        args: --family-name 'My Font Condensed'
    

    what "works" is this, but I find it a bit complicated:

    recipe:
      ../fonts/variable/MyFontCondensed[slnt,wdth,wght].ttf:
        - source: MyFont.glyphs
        - operation: exec
          exe: fontmake
          args: -g MyFont.glyphs --family-name 'My Font Condensed' -o variable  --output-path ../fonts/variable/MyFontCondensed[slnt,wdth,wght].ttf
      ../fonts/variable/MyFontCondensed[slnt,wght].ttf:
        - source: ../fonts/variable/MyFontCondensed[slnt,wdth,wght].ttf
        - operation: subspace
          axes: wdth=75
    

    Then I would need to splitItalic, but no idea how to do that within the recipe thing.

  2. RosaWagner commented on May 13, 2025

    @RosaWagner
    ContributorAuthor

    It could be that this is related to #1042, I am trying to include some condensed styles in the fvar (as a workaround) but the builder only includes weight instances and ignore the rest…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions