ToxicFrog / Ligaturizer

Programming Fonts with Ligatures added (& a script to add them to other fonts)
GNU General Public License v3.0
2.19k stars 112 forks source link

Cannot patch Meslo since 8533408 #29

Closed agross closed 5 years ago

agross commented 6 years ago

With commit 8533408f7a868c5cf171bd296a125e8c43224e60 patching Meslo no longer works (the ligatures are missing):

broken

On 11b2ed7 I get this:

2018-05-07_10-37-29

I use this script to patch the font and install it on macOS.

ToxicFrog commented 6 years ago

I tested this and it works for me on Linux, using the Meslo fonts included in the Ligaturizer repo -- can you test with those to help narrow down where the problem is? Also, what's the output from the build process?

agross commented 6 years ago

After running rm -rf output-fonts/* && make and installing the Liga Meslo LGS font manually I also see missing ligatures. I then restored output-fonts from GitHub and installed the one you ship in master, with the same results.

I then tried the following:

I then moved one commit forward and repeated:

$ fontforge --version
Copyright (c) 2000-2014 by George Williams. See AUTHORS for Contributors.
 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 with many parts BSD <http://fontforge.org/license.html>. Please read LICENSE.
 Based on sources from 09:31 UTC 21-Mar-2018-D.
 Based on source from git with hash:
fontforge 09:31 UTC 21-Mar-2018
libfontforge 20180321
ToxicFrog commented 5 years ago

Ok, I still can't reproduce this:

I also tried downloading the latest version (1.2) of Meslo and rebuilding using that and the ligatures still show up.

agross commented 5 years ago

Which OS did you try this on? I just reran my script (also using Meslo 1.2). Can you compare my fonts with yours? I use VS Code to check whether ligatures work. liga-meslo-macos.zip

ToxicFrog commented 5 years ago

I run it on Linux, using Fontforge 20170730, and test the ligatures using Sublime Text 3 and KCharSelect.

I tried LigaMesloLGS-Regular.ttf from your zip and the ligatures showed up fine for me.

Here's my version of the font: LigaMesloLGS-Regular.zip -- the ligatures in this also work fine for me.

agross commented 5 years ago

Thank you for providing a download. I copied your regular style to my fonts directory and suddenly VS Code having the test file opened turned bold. I then removed the other variants (Bold, BoldItalic, Italic) that were left over from my last successful conversion, and the text in VS Code turned back to regular. But without ligatures!

Can you please test against VS Code on Linux and see if there are ligatures or not?

ToxicFrog commented 5 years ago

I'll test it and report back, but keep in mind that most programs do not cope well with the font they're using being swapped out under them; for ST3 I have to switch to another font and then back for it to properly load changes, and Konsole just crashes outright if I change the font it's currently using. So changing the font while VSC is running may not be a reliable test.

ToxicFrog commented 5 years ago

Ligatures work fine for me in VS Code with the following settings:

{
    "editor.fontFamily": "'Liga Meslo LG S'",
    "editor.fontLigatures": true,
}
agross commented 5 years ago

After not even a reboot provided ligatures, your VS Code settings provided the final hint 👍🏻:

{
- "editor.fontFamily": "LigaMesloLGS"
+ "editor.fontFamily": "Liga Meslo LG S"
}

Seems like the name changed after said commit of the OP.

ToxicFrog commented 5 years ago

Oh, yes, I changed the way it updates font names and metadata. It now takes the existing name embedded in the font (if present) and prefixes "Liga ". And formally, the name of that font is "Meslo LG S".

In general it's a good idea to open your OS font picker or whatever and see what it thinks the name of the font is before typing it in to something like VS Code or Sublime Text that just wants you to blindly enter the name of the font; it doesn't always match the filename. Glad you got it sorted out. :)