googlefonts / fontmake

Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType).
Apache License 2.0
789 stars 94 forks source link

Kerning issue in VF #602

Closed rajputrajesh448 closed 5 years ago

rajputrajesh448 commented 5 years ago

I've exported the VR through fontmake but the kerning looks off for the weight 100 (width 75-100). But when I am exporting the VR from Fontlab then the kerning works fine.

Here is the link to both the TTF and Design Space File https://github.com/rajputrajesh448/Fonts

Best, Rajesh

anthrotype commented 5 years ago

I've exported the VR

VF as in variable font

kerning looks off

Could you be a bit more specific?

rajputrajesh448 commented 5 years ago

Oh my bad by VR I mean VF.

I exported the Variable Font through fontmake and when I am checking it on Axis-Praxis the Kerning for a few specific characters is not working (fo, fg, ij etc). As I am using FontLab so I exported a Variable Font directly from FontLab and then the kerning is working fine.

Here is the link to both the Variable TTF (Fontmake and FontLab) https://github.com/rajputrajesh448/Fonts/blob/master/Emberly%20TTF.zip

And the link to the Design Space file https://github.com/rajputrajesh448/Fonts/blob/master/EmberlyDesignSpace.zip

Thanks for your help.

rajputrajesh448 commented 5 years ago

Okay! I removed the existing kerning from the characters I mentioned and then assigned fresh kerning classes and it worked fine. Hence I am closing this issue.

But I would really appreciate it if you could share the code to extract the instances (Thin, Light, Extra Light, etc.) from the design space file, or should I open a new issue for this?

Best, Rajesh

twardoch commented 5 years ago

Rajesh,

when FontLab VI exports a VF, it performs the Match Kerning operation. When it exports a DesignSpace, it does not, but you can do it yourself from the Kerning panel local menu before you export DS+UFO. This will turn the kerning in all masters into a compatible structure (same classes, matching pairs etc.).

On Fri, 22 Nov 2019 at 19:41, Rajesh Kumar notifications@github.com wrote:

I've exported the VR through fontmake but the kerning looks off for the weight 100 (width 75-100). But when I am exporting the VR from Fontlab then the kerning works fine.

Here is the link to both the TTF and Design Space File https://github.com/rajputrajesh448/Fonts

Best, Rajesh

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/googlefonts/fontmake/issues/602?email_source=notifications&email_token=AAD6XRHAZ65HNPZMWTGE4ZLQVARVVA5CNFSM4JQUQ7HKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H3OZGQA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAD6XREPV47LG6GIT5AW4SLQVARVVANCNFSM4JQUQ7HA .

rajputrajesh448 commented 5 years ago

@twardoch Thanks Adam! That worked fine.

Do you have any idea how can I export instances (Thin, Light, etc) through font make for different formats (ttf, otf, woff, etc)?

anthrotype commented 5 years ago

Use the --interpolate or -i option to generate instances

rajputrajesh448 commented 5 years ago

Thank you, Cosimo! But the output which I am getting is .UFO where do I mention in this code that the output should be TTF, OTF or WOFF.

python3 -m fontmake -m /Users/rajeshkumar/Desktop/DesignSpace/Emberly\ Variable\ Regular.designspace --interpolate --output-path /Users/rajeshkumar/Desktop/DesignSpace/Emberly\ Variable\ Regular.ttf

I am also getting this error raise ValueError("output_path requires a single input") ValueError: output_path requires a single input

I don't have any prior experience in coding and really appreciate your help.

Best, Rajesh

madig commented 5 years ago

If you are generating instances, yuou must use --output-dir instead of --output-path.

anthrotype commented 5 years ago

He wants to interpolate static instances. When the output files are more than one as in this case you need to use --output-dir with the path to the directory where you want to save the output instances. Or simply don't pass any --ourput-path nor --ourput-dir option and let fontmake save the files in the default folders that it creates.

anthrotype commented 5 years ago

Please try to make sense of the fontmake --help, and if something doesn't make sense for you you then ask for clarification.