Пример #1
0
 def rotateFont(self, sender):
     
     if len(self.fontList):
         
         master = self.fontList[self.w.fontChoice.get()]
         destPath = GetFolder()
         
         if destPath:
         
             if self.w.glyphChoice.get() == 1:
                 glyphNames = master.selection
             else: glyphNames = []
             
             if self.w.outlineBox.get():
                 outlineAmount = self.w.outlineAmount.get()
                 outlineAmount *= 0.5
             else: outlineAmount = 0
             
             buildDesignSpace(
                 masterFont=master,
                 destPath=destPath, 
                 glyphNames = glyphNames,
                 outlineAmount=outlineAmount)
Пример #2
0
from RotateMaster import buildDesignSpace

buildDesignSpace(
    masterPath=
    "/Users/clymer/Documents/Code/Git repos/GitHub/andyclymer/Tilt-Typeface/sources/Tilt Warp/Masters/Tilt-Warp.ufo",
    destPath=
    "/Users/clymer/Documents/Code/Git repos/GitHub/andyclymer/Tilt-Typeface/sources/Tilt Warp/Rotated",
    glyphNames=[],
    compositionType="rotate depth",
    outlineAmount=0,
    doForceSmooth=False,
    doMakeSubSources=False,
    familyName="Tilt Warp",
    styleName="Regular",
    zOffset=-30)
Пример #3
0
from RotateMaster import buildDesignSpace

buildDesignSpace(
    masterPath=
    "/Users/clymer/Documents/Code/Git repos/GitHub/andyclymer/Tilt-Typeface/sources/Tilt Neon/Masters/Tilt-Neon.ufo",
    destPath=
    "/Users/clymer/Documents/Code/Git repos/GitHub/andyclymer/Tilt-Typeface/sources/Tilt Neon/Rotated Shadow",
    glyphNames=[],
    compositionType="rotate and shadow",
    outlineAmount=45,
    doForceSmooth=True,
    doMakeSubSources=True,
    familyName="Tilt Neon Shadow",
    styleName="Regular")
Пример #4
0
destInline = os.path.join(destPath, "Rotated Shadow 01 Inline")
destOutline = os.path.join(destPath, "Rotated Shadow 02 Outline")
destCombined = os.path.join(destPath, "Rotated Shadow 03 Combined")

doInline = True
doOutline = True
doCombine = True

if doInline:
    buildDesignSpace(
        masterPath=masterPath, 
        destPath=destInline, 
        glyphNames=glyphNames,
        compositionType="rotate and shadow", 
        outlineAmount=8, 
        doForceSmooth=True,
        doMakeSubSources=False,
        alwaysConnect=True, # Temporary, force connections to have extra points for compatibility
        cap="Butt",
        connection="Round",
        familyName="Tilt Monument Shadow",
        styleName="Regular",
        zOffset=0) # 60 for the normal style
     
if doOutline:
    buildDesignSpace(
        masterPath=masterPath, 
        destPath=destOutline, 
        glyphNames=glyphNames,
        compositionType="rotate and shadow", 
        outlineAmount=8, 
        doForceSmooth=True,