This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.ttLib import TTFont | |
font = TTFont("TitilliumWeb-Roman-VF.ttf") | |
print(font) | |
glyphnames = font.getGlyphOrder() | |
def name_report(gns): | |
for i in gns: | |
print(i) | |
print("Glyph Count:", len(gns)) | |
name_report(glyphnames) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.ttLib import TTFont | |
from fontTools.ttLib.tables._n_a_m_e import NameRecord | |
font = TTFont("TitilliumWeb-Roman-VF.ttf") | |
print(font) | |
myRecord = NameRecord() | |
myRecord.nameID = 128 | |
myRecord.platformID = 64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.ttLib import TTFont | |
font = TTFont("TitilliumWeb-Italic-VF.ttf") | |
print(font) | |
glyphnames = font.getGlyphOrder() | |
new_glyphnames = [ | |
name.replace( | |
"yehHamzaabove_yehHamzaabovear.fina", "yehHamzaabv_yehHamzaabvar.fina" | |
) | |
for name in glyphnames |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fontTools.ttLib import TTFont | |
font = TTFont("TitilliumWeb-Roman-VF.ttf") | |
print(font) | |
glyphnames = font.getGlyphOrder() | |
def name_report(gns): | |
for i in gns: | |
print(i) | |
print("Glyph Count:", len(gns)) | |
name_report(glyphnames) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 📄 RENDER THIS DOCUMENT WITH DRAWBOT (Python 3): http://www.drawbot.com/ | |
# 🌍 GIT URL: https://github.com/eliheuer/drawbot-sketchbok | |
from drawBot import * | |
import math | |
# [W] WIDTH, [H] HEIGHT, [M] MARGIN | |
W,H, M = 1000, 500, 20 | |
# Set variation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 📄 RENDER THIS DOCUMENT WITH DRAWBOT (Python 3): http://www.drawbot.com/ | |
# 🌍 GIT URL: https://github.com/eliheuer/drawbot-sketchbok | |
from drawBot import * | |
import math | |
# [W] WIDTH, [H] HEIGHT, [M] MARGIN | |
W,H,M = 1000,500,20 | |
# EDGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 📄 RENDER THIS DOCUMENT WITH DRAWBOT (Python 3): http://www.drawbot.com/ | |
from drawBot import * | |
import math | |
# [W] WIDTH, [H] HEIGHT, [M] MARGIN | |
W,H,M = 1024,512,64 | |
# EDGE | |
def edge(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RENDER THIS DOCUMENT WITH DRAWBOT: http://www.drawbot.com | |
# Typeface is Amiri: https://github.com/alif-type/amiri | |
from drawBot import * | |
import math | |
#[W]IDTH,[H]EIGHT,[M]ARGIN,[F]RAMES | |
W,H,M,F = 1224,792,72,72 | |
# GRID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Foundation import NSPoint | |
layer = Glyphs.font.selectedLayers[0] | |
width = layer.bounds.size.width | |
center = int(width/2) | |
# make anchor at (0,0) | |
layer.anchors['top'] = GSAnchor() | |
layer.anchors['bottom'] = GSAnchor() | |
# set position | |
layer.anchors['top'].position = NSPoint(center, 800) | |
layer.anchors['bottom'].position = NSPoint(center, 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fonts | |
Font: | |
Filename: ScienceGothicVF.ttf | |
Common name: Science Gothic | |
Sub family: Regular | |
Weight: bold | |
Fixed width: no | |
Fixed sizes: no | |
Copyright: Copyright © 2019 Font Detective LLC. | |
License: Licensed under Open Font License 1.1, with no reserved font name. |