Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Family name #16

Open
zertyuiop opened this issue Apr 21, 2020 · 9 comments
Open

Family name #16

zertyuiop opened this issue Apr 21, 2020 · 9 comments

Comments

@zertyuiop
Copy link

I do not know if this was planned, but after building Literata 3, each font file has its own family name, different for each file. I use Literata as the default font on my e-book, and I cannot use the compiled font files without first changing the family name.

@josescaglione
Copy link
Contributor

Can you please share some more information?

How do you see family names listed?
Is there any style linking at all (eg. Literata light and Literata Light Italic)?
What device and operating system are you using?

Many thanks,
J.-

@davelab6
Copy link
Member

How did you build the fonts? :)

@zertyuiop
Copy link
Author

For build, I used virtual machines with Fedora and Ubuntu. On Ubuntu, I used the fonttools, fontmake, woff-tools, woff2 packages from the Ubuntu repository, and gftools from PyPI. On Fedora, I used woff-tools and woff2 from the repository and fontmake, fonttools and gftools from PyPI. I used FontForge to view font information, it shows the family name, it is different for each file, there is no linking (Literata Light and Literata Light Italic have their own family names, and not the same, Literata Light for the linking to work).

@zertyuiop
Copy link
Author

I also noticed that there is a problem with the size in the font name. Some applications/devices cannot normally use fonts with this name (confirmed on Kobo eReader and CoolReader for Android). At the same time, if I rename a font using FontForge (for example, Literata 12pt to Literata), these devices and applications work normally with such a font. Perhaps it is worth adding the ability to build a font with the name "Literata" without size, for use in such situations?

@zertyuiop
Copy link
Author

I want to note that renaming to Literata 12 or Literata 3 gives nothing, fonts still have problems. In this case, for example, the Exo 2 font works fine.

@zertyuiop
Copy link
Author

Another note: font subfamily name and style is always Regular.

@kokoshneta
Copy link

kokoshneta commented Jun 12, 2020

Having just finally managed to build the static fonts on MacOS (using the supplied build script), I can reproduce this, at least part of it.

All the variants do have the same family name, but their style groups are messed up – each file is the Regular variant in its own style group, as shown in this screenshot (from Font Explorer X):

Screenshot 2020-06-12 at 15 03 24

I tried manually fixing the style groups with TransType 4, but the fonts that generates have weird errors where the diacritics in the polytonic Greek capitals are incorrectly placed, sometimes even appearing as negative space on top of the letter itself.

@kokoshneta
Copy link

Digging around a bit more, this seems to have been caused by some incorrect and missing values in the .designspace files. Neither of the two files had any of the styleMapFamilyName and styleMapStyleName attributes for any of the instances, which are needed to create style groups; and both of them also had some instances with errors in them (for some reason particularly the medium weights).

I’ve managed to get both fixed so the fonts created are correctly style-grouped, though I did it by manually editing the XML in the .designspace files. The instances which contained errors are all missing a <lib> node, but I don’t know what exactly those actually do and couldn’t figure out what values they ought to contain where they were missing, so I left them out. The fonts still built correctly.

@kokoshneta
Copy link

kokoshneta commented Jun 12, 2020

Added pull request #22 with the edited .designspace files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants