-
Notifications
You must be signed in to change notification settings - Fork 4
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
[USD-162] cmap parse patch #2
Conversation
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.
Can you add a short PR comment about what changes this includes.
It seems like those changes are kind of a patch for a few cases that we have run into rather than an improvement of the implementation. That is OK, we will probably want to refactor this in the future or build into unitype.
Added a few comments
go.mod
Outdated
@@ -0,0 +1,8 @@ | |||
module github.com/unidoc/freetype | |||
|
|||
go 1.17 |
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.
can drop this down to 1.14 or something?
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.
updated at 84ad69c
truetype/truetype.go
Outdated
} | ||
|
||
if gid > 0 { | ||
//b := runeDecoder.ToBytes(uint32(c)) |
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.
clean up commented code
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.
updated at 84ad69c
go.mod
Outdated
go 1.14 | ||
|
||
require ( | ||
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 |
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.
is it not replacing this module?
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.
updated 941ed7b
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.
LGTM
[USD-162] Simple font with subtable format(1,0) Macintosh Simple Encoding and cmap format0 parse implementation.
[USD-168] Simple font with subtabel format(3,0) Microsoft Symbol Encoding and cmap format4 patch, use unitype implementation if the freetype can't parse the cmap index correctly.