Created
July 1, 2015 09:04
-
-
Save marcdama/36e7d96962f16ba494fc to your computer and use it in GitHub Desktop.
FL: Font: Check if font has unicoded glyph from list
This file contains 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 robofab.world import * | |
f = CurrentFont() | |
unis = ['00A2','00A3','00A5','00A6','00A9','00AB','00AC','00AF','00B0','00B1','00B2','00B3','00B4','03BC','00B6','00B7','00B8','00B9','00BA','00BB','00BC','00BD','00BE','2011','2012','201A','201B','201E','201F','2020','2021','2022','2026','2038','2039','203A','2070','2074','2075','2076','2077','2078','2079','207A','207B','207C','207D','207E','207F','2080','2081','2082','2083','2084','2085','2086','2087','2088','2089','208A','208B','208C','208D','208E','20A1','2117','2120','2122','03A9','212E','2153','2154','215B','215C','215D','215E','2194','2195','21A8','21D0','21D2','21D4','220B','2212','2215','2218','2219','2221','2243','2259','2272','2273'] | |
g_unis = [] | |
for i in f: | |
if i.unicode: | |
cp = hex(i.unicode)[2:].zfill(4).upper() | |
g_unis.append(cp) | |
for i in unis: | |
if not i in g_unis: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment