summaryrefslogtreecommitdiff
path: root/scripts/lib
Commit message (Collapse)AuthorAge
* Always deal with floats when mixing font masters.James Godfrey-Kittle2015-08-21
| | | | | | | | | Without this change, some of the master data contains int values which are not interpolated correctly due to numpy array behavior. For example adding float values to a numpy array of ints will always result in an array of ints, so a scale value which should be a float between 0 and 1 might instead be rounded.
* Merge branch 'delivery-script-updates' into delivery-updatesJames Godfrey-Kittle2015-08-20
|\
| * Script updates 15/08/20.James Godfrey-Kittle2015-08-20
| |
* | Add top anchors to composite .smcp, .NAV glyphs.James Godfrey-Kittle2015-08-12
| | | | | | | | | | | | | | I'm not sure why we weren't doing this before, or why there is even a check to prevent adding top or bottom anchors to glyphs without unicode values. But this change seems appropriate, particularly since it fixes #69
* | Explicitly check anchor objects against None.James Godfrey-Kittle2015-07-17
| | | | | | | | | | | | | | | | | | This is necessary because of some implementation details in RoboFab; RAnchor objects always evaluate to False in a boolean context. Fixes a bug in which "top" anchors were not being added to composite glyphs, since they are added only when the "parenttop" anchor is present (which was checked for with a statement like "if anchor:").
* | Merge pull request #51 from google/name-table-fixJames Godfrey-Kittle2015-06-22
|\ \ | | | | | | Correct metadata related to font names and weights.
| * | Explicitly set weight class in OS/2 table.James Godfrey-Kittle2015-06-22
| | | | | | | | | | | | Without this, ufo2fdk sets both Light and Regular to 400 by default.
| * | Correctly set PostScript font name in UFOs.James Godfrey-Kittle2015-06-22
| | | | | | | | | | | | | | | This propagates to name ID 6 in the name table, and font name info in the CFF table.
| * | Correct family and style data in name table.James Godfrey-Kittle2015-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This uncomments some code which distinguishes between Regular/Bold and other weights when setting the UFOs' styleMapFamilyName attribute, which is used by the FDK to set the output OTFs' family names (this association is documented here: http://unifiedfontobject.org/versions/ufo2/fontinfo.html). It's not clear why this code was commented out in the first place. Part of #37
* | | Don't round interpolated component scaling values.James Godfrey-Kittle2015-06-19
| | | | | | | | | | | | | | | Basically a redo of 9292364c1a122498ada2616fdd20683c27c80e15, except more conservative.
* | | Revert "Don't convert mixed glyph values to ints."James Godfrey-Kittle2015-06-19
| | | | | | | | | | | | | | | This reverts commit 9292364c1a122498ada2616fdd20683c27c80e15. Necessary because it caused condensed glyphs to italicize incorrectly.
* | | Insert kerning subtables more aggressively.James Godfrey-Kittle2015-06-17
| | | | | | | | | | | | | | | | | | Updated glyphs require more kerning subtable breaks to avoid crashing makeotf. The subtable sizes are still decided somewhat arbitrarily based on trial-and-error.
* | | Revise updated scripts to run without FontLab.James Godfrey-Kittle2015-06-17
| | |
* | | Merge branch 'delivery-script-updates' into delivery-updatesJames Godfrey-Kittle2015-06-17
|\ \ \ | | |/ | |/|
| * | Script updates from Paratype 15/06/16.James Godfrey-Kittle2015-06-17
| | |
* | | Don't convert mixed glyph values to ints.James Godfrey-Kittle2015-06-11
| |/ |/| | | | | | | | | Doing this conversion visibly changes the appearance of some composite glyphs, since e.g. a component scale of 1.6 would be rounded to 2. What doesn't make sense is why this was working with FontLab....
* | Correctly copy FGlyphs to RoboFab RGlyphs.James Godfrey-Kittle2015-05-13
| | | | | | | | This caused some glyph mixes to fail.
* | Copy kerning info when copying FFonts.James Godfrey-Kittle2015-05-12
| | | | | | | | This affects the creation of condensed masters, without it they had no kerning info.
* | Don't remove overlaps while italicizing glyphs.James Godfrey-Kittle2015-05-12
| | | | | | | | This was causing problems with Thin Italic font generation.
* | Merge pull request #34 from google/anchor-fixJames Godfrey-Kittle2015-05-11
|\ \ | | | | | | Fix bug causing inaccurate anchor coordinates.
| * | Use RGlyph.move() to shift composite glyphs.James Godfrey-Kittle2015-05-08
| | | | | | | | | | | | This has now been fixed upstream.
| * | Correctly shift composite glyphs with offsets.James Godfrey-Kittle2015-05-07
| | | | | | | | | | | | Ideally we could call RGlyph.move(offset, anchors=False), but we have to bring back "shiftGlyphMembers" from the original toolchain because RGlyph.move does not work as documented.
| * | Infer composite glyphs' unicode values from names.James Godfrey-Kittle2015-05-01
| | |
| * | Remove some checks when adding anchors.James Godfrey-Kittle2015-05-01
| | | | | | | | | | | | These issues are solved with the updated anchor resources.
| * | Set unicode values of generated glyphs earlier.James Godfrey-Kittle2015-04-30
| | | | | | | | | | | | This is necessary for correctly adding anchors in the immediately following code.
| * | Fix bug causing inaccurate anchor coordinates.James Godfrey-Kittle2015-04-30
| | | | | | | | | | | | I introduced this bug in aa285dc861fb8a5b5083e1de3bb00ea1ef658cb1 while adapting updated scripts from Paratype.
* | | Remove feaTools adaptions which are now upstream.James Godfrey-Kittle2015-04-29
|/ /
* | More descriptive variable names in kerning.py.James Godfrey-Kittle2015-04-27
| |
* | Clean up kern feature generation a bit.James Godfrey-Kittle2015-04-22
| |
* | Clean up anchor addition code, include comments.James Godfrey-Kittle2015-04-22
| |
* | Make glyph anchor info prettier.James Godfrey-Kittle2015-04-22
| |
* | Don't check for invalid mark lookups.James Godfrey-Kittle2015-04-20
| | | | | | | | With anchors fixed, we shouldn't need this check. Rollback of 55519e636b119dcdd91319364c572d3550050a43.
* | Re-add dropped anchors to glyphs during build.James Godfrey-Kittle2015-04-20
| | | | | | | | This is a temporary workaround until VFB to UFO conversion is fixed.
* | Break up kerning subtable by actual rule counts.James Godfrey-Kittle2015-04-20
| | | | | | | | This should avoid segmentation faults from makeotf even as we add more kerning rules. Necessary for the upcoming missing-anchor fix.
* | Exit after failing to generate OTF.James Godfrey-Kittle2015-04-17
| | | | | | | | Part of #3
* | Minor style modification in fontbuild/Build.py.Roozbeh Pournader2015-04-17
| |
* | Don't try generating TTF if OTF generation fails.James Godfrey-Kittle2015-04-17
| | | | | | | | Closes #3
* | Clear base font's kerning when interpolating.James Godfrey-Kittle2015-04-16
| | | | | | | | This matches the behavior of the old toolchain. The result should only contain kern rules for pairs present in both masters.
* | Change default arg value for type consistency.James Godfrey-Kittle2015-04-16
| |
* | Remove debugging code.James Godfrey-Kittle2015-04-16
| |
* | Generate kern feature ourselves.James Godfrey-Kittle2015-04-16
| |
* | Respond to comments on rc2d741006986.James Godfrey-Kittle2015-04-16
| |
* | Move v2 output from out/v2/ to out/.James Godfrey-Kittle2015-04-16
| | | | | | | | Rollback changes from ra92a8e3146bd.
* | Remove unused createFEA flag.James Godfrey-Kittle2015-04-16
| | | | | | | | OTF syntax files are created automatically with UFOs. So this doesn't make sense as a separate option.
* | Add license files and headers.James Godfrey-Kittle2015-04-16
| |
* | Remove booleanOperations from repo.James Godfrey-Kittle2015-04-16
| | | | | | | | This was included mostly because it's not convenient to install (no setup.py). But that can be fixed upstream.
* | Use os.path.join to produce output paths.James Godfrey-Kittle2015-04-16
| |
* | Update scripts to use external kerning rules.James Godfrey-Kittle2015-04-16
| |
* | Support pair positioning rules.James Godfrey-Kittle2015-04-16
| |
* | Make sure mark feature values are ints.James Godfrey-Kittle2015-04-16
| | | | | | | | This is necessary when a font has been italicized, and its anchors have been transformed.