Skip to content

Commit

Permalink
Read family name from Windows platform
Browse files Browse the repository at this point in the history
We strip the Mac platform from the web fonts.
  • Loading branch information
khaledhosny committed Dec 25, 2016
1 parent bb5c484 commit 3425c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/makecss.py
Expand Up @@ -11,7 +11,7 @@ def genCSS(font, base):
if font["post"].italicAngle != 0:
style = "oblique"
weight = font["OS/2"].usWeightClass
family = font["name"].getName(nameID=1, platformID=1, platEncID=0)
family = font["name"].getName(nameID=1, platformID=3, platEncID=1)

css = """
@font-face {
Expand Down

0 comments on commit 3425c57

Please sign in to comment.