Skip to content

Commit

Permalink
Changed name to Ysabeau
Browse files Browse the repository at this point in the history
  • Loading branch information
CatharsisFonts committed Jan 6, 2019
1 parent 1a36064 commit ff07dd1
Show file tree
Hide file tree
Showing 235 changed files with 1,702,254 additions and 0 deletions.
Binary file added 1. TrueType Font Files/Ysabeau-Black.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Bold.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-BoldItalic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Extralight.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Hairline.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Heavy.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Italic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Light.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-LightItalic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Medium.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-MediumItalic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Regular.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Semibold.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Semilight.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Thin.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-ThinItalic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/Ysabeau-Ultrabold.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Italic.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Light.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauInfant-Thin.ttf
Binary file not shown.
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Bold.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Extralight.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Hairline.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Light.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Medium.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Regular.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Semibold.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Semilight.ttf
Binary file not shown.
Binary file added 1. TrueType Font Files/YsabeauSC-Thin.ttf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Black.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Bold.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-BoldItalic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Extralight.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Hairline.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Heavy.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Italic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Light.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-LightItalic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Medium.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-MediumItalic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Regular.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Semibold.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Semilight.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Thin.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-ThinItalic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/Ysabeau-Ultrabold.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Bold.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Italic.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Light.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Medium.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Regular.otf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauInfant-Thin.otf
Binary file not shown.
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Bold.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Extralight.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Hairline.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Light.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Medium.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Regular.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Semibold.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Semilight.otf
Binary file not shown.
Binary file added 2. OpenType Font Files/YsabeauSC-Thin.otf
Binary file not shown.
42 changes: 42 additions & 0 deletions 3. Glyphs Source Files/Ysabeau Generate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#MenuTitle: Ysabeau Batch Generate Fonts
# -*- coding: utf-8 -*-
__doc__="""
Ysabeau Batch Generate Fonts.
"""


fileFolder = "~/Documents/Typography/EauDeGaramond/GitHub/3. Glyphs Source Files/"

otf_path = "~/Documents/Typography/EauDeGaramond/GitHub/2. OpenType Font Files/"
ttf_path = "~/Documents/Typography/EauDeGaramond/GitHub/1. TrueType Font Files/"

OTF_AutoHint = True
TTF_AutoHint = True
RemoveOverlap = True
UseSubroutines = True
UseProductionNames = True


import os

fileFolder = os.path.expanduser(fileFolder)
fileNames = os.listdir(fileFolder)

print fileNames

for fileName in fileNames:
if os.path.splitext(fileName)[1] == ".glyphs":
font = GSFont(os.path.join(fileFolder, fileName))
print font.familyName
for instance in font.instances:
print "== Exporting OTF =="
print instance.generate(Format = "OTF", FontPath = os.path.expanduser(otf_path), AutoHint = OTF_AutoHint, RemoveOverlap = RemoveOverlap, UseSubroutines = UseSubroutines, UseProductionNames = UseProductionNames)
print
for instance in font.instances:
print "== Exporting TTF =="
print instance.generate(Format = "TTF", FontPath = os.path.expanduser(ttf_path), AutoHint = TTF_AutoHint, RemoveOverlap = RemoveOverlap, UseProductionNames = UseProductionNames)
print
#for instance in font.instances:
# print "== Exporting WOFF =="
# print instance.generate(Format = "WOFF", FontPath = os.path.expanduser(web_path), AutoHint = TTF_AutoHint, RemoveOverlap = RemoveOverlap, UseSubroutines = UseSubroutines, UseProductionNames = UseProductionNames)
#print
88 changes: 88 additions & 0 deletions 3. Glyphs Source Files/Ysabeau Italic Make Export Instances.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
#MenuTitle: Ysabeau Italic Make Export Instances
# -*- coding: utf-8 -*-
"""Injects and/or updates the Rename Glyphs custom parameters in the .glyphs file."""

import GlyphsApp


# Infant
Font = Glyphs.font

suffix = ".ss01"
all01names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs1 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in all01names ]
renameGlyphsParameterKey = "Rename Glyphs"

forbidden = all01names
forbidden = [ x.replace(".ss01", ".ss02") for x in forbidden ]

suffix = ".ss02"
all02names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
good02names = all02names
for x in forbidden:
if x in all02names:
good02names.remove(x)

renameGlyphs2 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in good02names ]

suffix = ".ss03"
all03names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
good03names = all03names
for x in forbidden:
if x in all03names:
good03names.remove(x)

renameGlyphs3 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in good03names ]


forbidden = all01names
forbidden = [ x.replace(".ss01", ".loclBGR") for x in forbidden ]

suffix = ".loclBGR"
allBGRnames = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs4 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in allBGRnames ]

suffix = ".lf"
allLFGlyphNames = [ g.name for g in Font.glyphs if g.name.endswith(suffix) ]
renameGlyphs5 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in allLFGlyphNames ]

#decomposeGlyphs = all01names + allLFGlyphNames
decomposeGlyphs = [g.name for g in Font.glyphs]

for thisInstance in Font.instances:
parameterFamilyName = thisInstance.customValueForKey_("familyName")
if parameterFamilyName:
familyName = parameterFamilyName
else:
familyName = Font.familyName
if familyName.endswith("Infant"):
thisInstance.removeObjectFromCustomParametersForKey_( renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( renameGlyphs1 + renameGlyphs2 + renameGlyphs3 + renameGlyphs4 + renameGlyphs5, renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( ["ss01", "ss02", "lnum", "locl"], "Remove Features" )
thisInstance.removeObjectFromCustomParametersForKey_( "Decompose Glyphs" )
thisInstance.setCustomParameter_forKey_( decomposeGlyphs, "Decompose Glyphs" )


# Text
Font = Glyphs.font

suffix = ".ss02"
all02names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs2 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in all02names ]
renameGlyphsParameterKey = "Rename Glyphs"

#decomposeGlyphs = all02names
decomposeGlyphs = [g.name for g in Font.glyphs]

for thisInstance in Font.instances:
parameterFamilyName = thisInstance.customValueForKey_("familyName")
if parameterFamilyName:
familyName = parameterFamilyName
else:
familyName = Font.familyName
if familyName.endswith("Text"):
thisInstance.removeObjectFromCustomParametersForKey_( renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( renameGlyphs2, renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( ["ss02"], "Remove Features" )
thisInstance.removeObjectFromCustomParametersForKey_( "Decompose Glyphs" )
thisInstance.setCustomParameter_forKey_( decomposeGlyphs, "Decompose Glyphs" )
103 changes: 103 additions & 0 deletions 3. Glyphs Source Files/Ysabeau Make Export Instances.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
#MenuTitle: Ysabeau Make Export Instances
# -*- coding: utf-8 -*-
"""Injects and/or updates the Rename Glyphs custom parameters in the .glyphs file."""

import GlyphsApp


# Infant
Font = Glyphs.font

suffix = ".ss01"
all01names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs1 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in all01names ]
renameGlyphsParameterKey = "Rename Glyphs"

forbidden = all01names
forbidden = [ x.replace(".ss01", ".ss02") for x in forbidden ]

suffix = ".ss02"
all02names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
good02names = all02names
for x in forbidden:
if x in all02names:
good02names.remove(x)

renameGlyphs2 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in good02names ]


forbidden = all01names
forbidden = [ x.replace(".ss01", ".loclBGR") for x in forbidden ]

suffix = ".loclBGR"
allBGRnames = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs3 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in allBGRnames ]

suffix = ".lf"
allLFGlyphNames = [ g.name for g in Font.glyphs if g.name.endswith(suffix) ]
renameGlyphs4 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in allLFGlyphNames ]

#decomposeGlyphs = all01names + allLFGlyphNames
decomposeGlyphs = [g.name for g in Font.glyphs]

for thisInstance in Font.instances:
parameterFamilyName = thisInstance.customValueForKey_("familyName")
if parameterFamilyName:
familyName = parameterFamilyName
else:
familyName = Font.familyName
if familyName.endswith("Infant"):
thisInstance.removeObjectFromCustomParametersForKey_( renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( renameGlyphs1 + renameGlyphs2 + renameGlyphs3 + renameGlyphs4, renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( ["ss01", "ss02", "lnum", "locl"], "Remove Features" )
thisInstance.removeObjectFromCustomParametersForKey_( "Decompose Glyphs" )
thisInstance.setCustomParameter_forKey_( decomposeGlyphs, "Decompose Glyphs" )


# Text
Font = Glyphs.font

suffix = ".ss02"
all02names = [ g.name for g in Font.glyphs if (g.name.find(suffix) > 0) ]
renameGlyphs2 = [ "%s=%s" % ( x, x.replace(suffix,"") ) for x in all02names ]
renameGlyphsParameterKey = "Rename Glyphs"

#decomposeGlyphs = all02names
decomposeGlyphs = [g.name for g in Font.glyphs]

for thisInstance in Font.instances:
parameterFamilyName = thisInstance.customValueForKey_("familyName")
if parameterFamilyName:
familyName = parameterFamilyName
else:
familyName = Font.familyName
if familyName.endswith("Text"):
thisInstance.removeObjectFromCustomParametersForKey_( renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( renameGlyphs2, renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( ["ss02"], "Remove Features" )
thisInstance.removeObjectFromCustomParametersForKey_( "Decompose Glyphs" )
thisInstance.setCustomParameter_forKey_( decomposeGlyphs, "Decompose Glyphs" )


# Smallcaps
Font = Glyphs.font

allSCnames = [ g.name for g in Font.glyphs if (g.name.find(".sc") > 0) ]
renameSC = [ "%s=%s" % ( x, x.replace(".sc","") ) for x in allSCnames ]

#decomposeGlyphs = allSCnames
decomposeGlyphs = [g.name for g in Font.glyphs]

for thisInstance in Font.instances:
parameterFamilyName = thisInstance.customValueForKey_("familyName")
if parameterFamilyName:
familyName = parameterFamilyName
else:
familyName = Font.familyName
if familyName.endswith("SC"):
thisInstance.removeObjectFromCustomParametersForKey_( renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( renameSC, renameGlyphsParameterKey )
thisInstance.setCustomParameter_forKey_( ["liga","dlig","smcp","c2sc"], "Remove Features" )
thisInstance.removeObjectFromCustomParametersForKey_( "Decompose Glyphs" )
thisInstance.setCustomParameter_forKey_( decomposeGlyphs, "Decompose Glyphs" )

Loading

0 comments on commit ff07dd1

Please sign in to comment.