question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specify and implement a "StyleName recommendation" check

See original GitHub issue
$ ./fontbakery-check-ttf.py -s ../mada/Mada-Black.ttf 
…
ERROR    Mada-Black.ttf: Warning: Windows-only Opentype-specific StyleName should be set to "Regular".

I have no idea what is “Windows-only Opentype-specific StyleName” or what to do with this error.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:18 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
khaledhosnycommented, Jul 30, 2016

Windows old font APIs allow only four fonts per family, so for any given family there can only be the following four fonts:

Family (id=1) Subfamily (id=2) Full name (id=4)
Foo Regular Foo Regular
Foo Bold Foo Bold
Foo Italic Foo Italic
Foo Bold Italic Foo Bold Italic

To support families was more than four fonts, typographic family name and typographic subfamily name have been introduced, and the extra fonts have to be structured like this:

Family (id=1) Subfamily (id=2) Full name (id=4) Typograpghic Family (id=16) Typographic Subfamily (id=17)
Foo Light Regular Foo Light Foo Light
Foo Medium Regular Foo Medium Foo Medium
Foo Black Regular Foo Black Foo Black

So for the old APIs these are seen as separate families with just the regular style each, ad for newer APIs that support the typographic name they all belong to the Foo family. For the first four styles name ids 16 and 17 can be missing or identical to 2 and 4, respectively.

0reactions
alexeivacommented, Aug 1, 2016

DemiBold and Book were legacy names, which are served on GF as SemiBold and Regular.

screen shot 2016-07-31 at 21 36 57

DemiBold and SemiBold are both 600 — it is a question of preference.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apply styles - Microsoft Support
Select text and apply a style such as a title, header, or paragraph using the Styles gallery. ... Styles give your document a...
Read more >
Apply Photographic Styles with your iPhone Camera
Choose a Photographic Style · Open Camera, then tap the Camera Controls button . · Tap the Photographic Styles button , then swipe...
Read more >
How to Style Your React App – 5 Ways to Write CSS in 2021
When it comes to styling your React app, you have a ton of different options. Which do you choose? I have broken down...
Read more >
Creating accessible PDFs - Adobe Support
As you create InDesign styles, set each style's Export Tagging (in the ... by choosing Full Check from the Acrobat accessibility tools.
Read more >
Using media queries - CSS: Cascading Style Sheets | MDN
Media queries allow you to apply CSS styles depending on a device's ... A media query computes to true when the media type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found