Skip to content
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

Merged
merged 9 commits into from
Jan 30, 2022
Merged

Conversation

sampila
Copy link

@sampila sampila commented Jan 21, 2022

[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.

@sampila sampila requested a review from gunnsth January 21, 2022 12:34
go.mod Show resolved Hide resolved
Copy link

@gunnsth gunnsth left a 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
Copy link

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?

Copy link
Author

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 Show resolved Hide resolved
}

if gid > 0 {
//b := runeDecoder.ToBytes(uint32(c))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clean up commented code

Copy link
Author

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 Show resolved Hide resolved
truetype/truetype.go Show resolved Hide resolved
@sampila sampila requested a review from gunnsth January 30, 2022 18:09
go.mod Outdated
go 1.14

require (
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0
Copy link

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated 941ed7b

@sampila sampila requested a review from gunnsth January 30, 2022 19:05
Copy link

@gunnsth gunnsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gunnsth gunnsth merged commit 3efbeef into unidoc:master Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants