robotools / ufo2fdk Goto Github PK
View Code? Open in Web Editor NEWA bridge from UFOs to the FDK (and therefore, OTFs).
License: MIT License
A bridge from UFOs to the FDK (and therefore, OTFs).
License: MIT License
ufo2fdk/Lib/ufo2fdk/outlineOTF.py
Line 439 in be71419
I think it might have to become glyph.controlPointBounds[0]
it is possible that the maxY is negative in exceptional cases
See unified-font-object/ufo-spec#84. This is in ufo2ft.
FDK is changing tools and it possible that checkoutlines
is not available anymore in favour of checkOutlinesUFO
when installing FDK from source.
@adobe-type-tools could you confirm this?
This might be an edge case but I am attempting to build a family with a very large amount of fonts. My build script uses the execute function in the FDKBridge.py but breaks around 125 fonts with the following error: OSError: [Errno 24] Too many open files
. It seems to be a problem with the line where popen is declared.
ufo2fdk/Lib/ufo2fdk/fdkBridge.py
Line 273 in 37a5a3a
Store the GOADB here:
com.typesupply.ufo2fdk.glyphOrderAndAliasDB
Some new UFO3 font info attributes don’t have a fallback in ufo2fdk.fontInfoData
.
Running the script below in RoboFont 2 will print the missing attributes:
from ufo2fdk.fontInfoData import *
f = NewFont()
f.info.familyName = 'Hello'
f.info.styleName = 'World'
for attr in sorted(f.info.asDict()):
try:
getAttrWithFallback(f.info, attr)
except:
print attr
openTypeGaspRangeRecords
openTypeNameRecords
openTypeOS2WinAscent
openTypeOS2WinDescent
woffMajorVersion
woffMetadataCopyright
woffMetadataCredits
woffMetadataDescription
woffMetadataExtensions
woffMetadataLicense
woffMetadataLicensee
woffMetadataTrademark
woffMetadataUniqueID
woffMetadataVendor
woffMinorVersion
K:\del\robofab-master\robofab-master>python setup.py install
File "setup.py", line 15
print "*** Warning: FontTools needs the numpy library for some operations, see:"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("*** Warning: FontTools needs the numpy library for some operations, see:")?
see adobe-type-tools/afdko#682
this should change here https://github.com/typesupply/ufo2fdk/blob/master/Lib/ufo2fdk/makeotfParts.py
Currently the default values for defaultWidthX
and nominalWidthX
are 200 and 0 and they are never adjusted according to the glyphs in the font. This makes for a slightly bigger CFF table when compared with what makeotf produces.
otf-making-benchmark has two test cases.
This should maybe be handled nicely by ufo2fdk
this brings up an other issue: It would be nice to send ufo2fdk a list of pre process and post process callbacks, this could be a solution to add both callbacks defined in ufo2fdk as custom callbacks. Similar to extractor customFunctions.
See here: #3
See this PR for details:
Address this by joining the strings with u"\n\n" instead of "\n\n".
cc @adrientetar
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.