-
Notifications
You must be signed in to change notification settings - Fork 256
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
Subsetting fixes #346
Subsetting fixes #346
Conversation
Helps ensure ToUnicode map is set correctly.
Codecov Report
@@ Coverage Diff @@
## development #346 +/- ##
===============================================
+ Coverage 52.43% 52.64% +0.21%
===============================================
Files 236 236
Lines 45715 45715
===============================================
+ Hits 23969 24067 +98
+ Misses 18655 18545 -110
- Partials 3091 3103 +12
Continue to review full report at Codecov.
|
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.
Looks good. I left one comment regarding a minor typo in notes of the SubsetRegistered
methods.
internal/textencoding/truetype.go
Outdated
@@ -31,6 +31,7 @@ type TrueTypeFontEncoder struct { | |||
} | |||
|
|||
// SubsetRegistered subsets `enc` to only registered runes (that have been registered via encoding). | |||
// NOTE: Make sure to call this soon before writing (once all needed runes has been registered). |
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.
Minor typo in the note: has been registered
instead of have been registered
.
Same in the note from model/font.go
.
This change is