-
Notifications
You must be signed in to change notification settings - Fork 479
Add glyf flags bit6 to ttx output #1316
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
3856372
Implement glyf outline flags bit 6 when decompiling/compiling
jenskutilek 226aaa7
Add test data for outline flag bit 6
jenskutilek 3160e95
Rename flags, use bitwise OR for setting flag bit
jenskutilek 33b065b
Remove unneeded code
jenskutilek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.29"> | ||
|
||
<GlyphOrder> | ||
<!-- The 'id' attribute is only for humans; it is ignored when parsed. --> | ||
<GlyphID id="0" name=".notdef"/> | ||
<GlyphID id="1" name="glyph00001"/> | ||
<GlyphID id="2" name="glyph00002"/> | ||
<GlyphID id="3" name="glyph00003"/> | ||
</GlyphOrder> | ||
|
||
<head> | ||
<!-- Most of this table will be recalculated by the compiler --> | ||
<tableVersion value="1.0"/> | ||
<fontRevision value="1.0"/> | ||
<checkSumAdjustment value="0x6e4f1ccf"/> | ||
<magicNumber value="0x5f0f3cf5"/> | ||
<flags value="00100000 00011011"/> | ||
<unitsPerEm value="2048"/> | ||
<created value="Thu Sep 13 14:22:20 2018"/> | ||
<modified value="Fri Sep 14 09:25:13 2018"/> | ||
<xMin value="12"/> | ||
<yMin value="0"/> | ||
<xMax value="1172"/> | ||
<yMax value="1430"/> | ||
<macStyle value="00000000 00000000"/> | ||
<lowestRecPPEM value="9"/> | ||
<fontDirectionHint value="2"/> | ||
<indexToLocFormat value="0"/> | ||
<glyphDataFormat value="0"/> | ||
</head> | ||
|
||
<maxp> | ||
<!-- Most of this table will be recalculated by the compiler --> | ||
<tableVersion value="0x10000"/> | ||
<numGlyphs value="4"/> | ||
<maxPoints value="11"/> | ||
<maxContours value="2"/> | ||
<maxCompositePoints value="0"/> | ||
<maxCompositeContours value="0"/> | ||
<maxZones value="1"/> | ||
<maxTwilightPoints value="0"/> | ||
<maxStorage value="0"/> | ||
<maxFunctionDefs value="10"/> | ||
<maxInstructionDefs value="0"/> | ||
<maxStackElements value="512"/> | ||
<maxSizeOfInstructions value="353"/> | ||
<maxComponentElements value="0"/> | ||
<maxComponentDepth value="0"/> | ||
</maxp> | ||
|
||
<loca> | ||
<!-- The 'loca' table will be calculated by the compiler --> | ||
</loca> | ||
|
||
<glyf> | ||
|
||
<!-- The xMin, yMin, xMax and yMax values | ||
will be recalculated by the compiler. --> | ||
|
||
<TTGlyph name=".notdef"/><!-- contains no outline data --> | ||
|
||
<TTGlyph name="glyph00001"/><!-- contains no outline data --> | ||
|
||
<TTGlyph name="glyph00002"/><!-- contains no outline data --> | ||
|
||
<TTGlyph name="glyph00003" xMin="12" yMin="0" xMax="1172" yMax="1430"> | ||
<contour> | ||
<pt x="501" y="1430" on="1" overlap="1"/> | ||
<pt x="683" y="1430" on="1"/> | ||
<pt x="1172" y="0" on="1"/> | ||
<pt x="983" y="0" on="1"/> | ||
<pt x="591" y="1193" on="1"/> | ||
<pt x="199" y="0" on="1"/> | ||
<pt x="12" y="0" on="1"/> | ||
</contour> | ||
<contour> | ||
<pt x="249" y="514" on="1"/> | ||
<pt x="935" y="514" on="1"/> | ||
<pt x="935" y="352" on="1"/> | ||
<pt x="249" y="352" on="1"/> | ||
</contour> | ||
<instructions/> | ||
</TTGlyph> | ||
|
||
</glyf> | ||
|
||
</ttFont> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rest of the tests in this file already use pytest-style tests (with plain
assert
statements), I would prefer that over unittest-style tests.. but anyway some tests is better than none, thanks anyway.