RoboFont › Forums › Help / General › Generate/Compile only in otf
Tagged: generate compile
This topic contains 6 replies, has 2 voices, and was last updated by Thom 7 years, 9 months ago.
-
AuthorPosts
-
January 23, 2013 at 13:55 #5387
Hello,
Is there a way to put only a given charset in the otf?
Ben benieuwd!Thom
January 23, 2013 at 13:58 #5388O! the title should be: Generate/Compile /less yourCharset/greater only in otf
January 23, 2013 at 14:20 #5390not atomically, mainly cause you have to deal with all the OT features (like kerning)
January 23, 2013 at 14:24 #5392I see. So it makes more sense to make more ufo’s if you want specific charsets for your fonts?
January 23, 2013 at 14:44 #5393no, do this on the fly, make a script that extract only the glyph you need from a master UFO
January 23, 2013 at 14:48 #5394Okay! Can you give a tiny example of the script? Thanks!
January 23, 2013 at 15:01 #5395Like so?
familyName = ‘Fam’
styleName = ‘Style’
Latin1=[‘space’, ‘exclam’, ‘quotesingle’, ‘quotedbl’, ‘numbersign’, ‘dollar’, ‘percent’, ‘ampersand’, ‘parenleft’, ‘parenright’, ‘asterisk’, ‘plus’, ‘comma’, ‘hyphen’, ‘period’, ‘slash’, ‘zero’, ‘one’, ‘two’, ‘three’, ‘four’, ‘five’, ‘six’, ‘seven’, ‘eight’, ‘nine’, ‘colon’, ‘semicolon’, ‘less’, ‘equal’, ‘greater’, ‘question’, ‘at’, ‘A’, ‘B’, ‘C’, ‘D’, ‘E’, ‘F’, ‘G’, ‘H’, ‘I’, ‘J’, ‘K’, ‘L’, ‘M’, ‘N’, ‘O’, ‘P’, ‘Q’, ‘R’, ‘S’, ‘T’, ‘U’, ‘V’, ‘W’, ‘X’, ‘Y’, ‘Z’, ‘bracketleft’, ‘backslash’, ‘bracketright’, ‘asciicircum’, ‘underscore’, ‘grave’, ‘a’, ‘b’, ‘c’, ‘d’, ‘e’, ‘f’, ‘g’, ‘h’, ‘i’, ‘j’, ‘k’, ‘l’, ‘m’, ‘n’, ‘o’, ‘p’, ‘q’, ‘r’, ‘s’, ‘t’, ‘u’, ‘v’, ‘w’, ‘x’, ‘y’, ‘z’, ‘braceleft’, ‘bar’, ‘braceright’, ‘asciitilde’, ‘exclamdown’, ‘cent’, ‘sterling’, ‘currency’, ‘yen’, ‘brokenbar’, ‘section’, ‘dieresis’, ‘copyright’, ‘ordfeminine’, ‘guillemotleft’, ‘logicalnot’, ‘registered’, ‘macron’, ‘degree’, ‘plusminus’, ‘twosuperior’, ‘threesuperior’, ‘acute’, ‘mu’, ‘paragraph’, ‘periodcentered’, ‘cedilla’, ‘onesuperior’, ‘ordmasculine’, ‘guillemotright’, ‘onequarter’, ‘onehalf’, ‘threequarters’, ‘questiondown’, ‘Agrave’, ‘Aacute’, ‘Acircumflex’, ‘Atilde’, ‘Adieresis’, ‘Aring’, ‘AE’, ‘Ccedilla’, ‘Egrave’, ‘Eacute’, ‘Ecircumflex’, ‘Edieresis’, ‘Igrave’, ‘Iacute’, ‘Icircumflex’, ‘Idieresis’, ‘Eth’, ‘Ntilde’, ‘Ograve’, ‘Oacute’, ‘Ocircumflex’, ‘Otilde’, ‘Odieresis’, ‘multiply’, ‘Oslash’, ‘Ugrave’, ‘Uacute’, ‘Ucircumflex’, ‘Udieresis’, ‘Yacute’, ‘Thorn’, ‘germandbls’, ‘agrave’, ‘aacute’, ‘acircumflex’, ‘atilde’, ‘adieresis’, ‘aring’, ‘ae’, ‘ccedilla’, ‘egrave’, ‘eacute’, ‘ecircumflex’, ‘edieresis’, ‘igrave’, ‘iacute’, ‘icircumflex’, ‘idieresis’, ‘eth’, ‘ntilde’, ‘ograve’, ‘oacute’, ‘ocircumflex’, ‘otilde’, ‘odieresis’, ‘divide’, ‘oslash’, ‘ugrave’, ‘uacute’, ‘ucircumflex’, ‘udieresis’, ‘yacute’, ‘thorn’, ‘ydieresis’, ‘dotlessi’, ‘circumflex’, ‘caron’, ‘breve’, ‘dotaccent’, ‘ring’, ‘ogonek’, ’tilde’, ‘hungarumlaut’, ‘quoteleft’, ‘quoteright’, ‘minus’]newFont = NewFont(familyName=familyName, styleName=styleName, showUI=True)
master = RFont(‘/path/to/your.ufo’, showUI=False)
for newGlyph in Latin1:
exGlyph = master[newGlyph]
newFont[newGlyph] = exGlyph -
AuthorPosts
You must be logged in to reply to this topic.