-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
WIP: Compact Font Format (CFF) Version 2 #342
base: main
Are you sure you want to change the base?
Conversation
- Add missing break
# Conflicts: # src/SixLabors.Fonts/Tables/Cff/FDRangeProvider.cs # src/SixLabors.Fonts/Tables/TableLoader.cs
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #342 +/- ##
======================================
- Coverage 86% 85% -2%
======================================
Files 238 259 +21
Lines 15184 15865 +681
Branches 2101 2205 +104
======================================
+ Hits 13088 13488 +400
- Misses 1613 1871 +258
- Partials 483 506 +23
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@brianpopow I had a quick look at the |
I use the tagged version
This creates a new font variation with the weight 300 as an option. Then add a breakpoint, when the font is loaded and inspect |
@JimBobSquarePants I think the ItemVariationsData now looks equal to fontkit, maybe you could double check, if I have missed something. |
OK. Figured that out. The two arrays were being concatenated in the wrong order. I'll have to do a fair bit of code reading to be able to be more useful. Will start asap. |
@brianpopow I've gone through and updated the PR to allow merging with the changes introduced during the submodule and target framework updates. The file-scoped namespace changes killed the ability to auto-merge. It looks like I've done everything correctly. |
did this get dropped or still being worked on |
Needs someone to finish it off. It’s a lot of work and we have very few contributors |
Prerequisites
Description
This PR aims to add support for CFF2 format. Its still a work in progress.
The Specification can be found here.
Introduction to open type variable fonts: introducing-opentype-variable
Relevant tables for the font variations are:
Example font for CFF2:
RobotoFlex.zip
To see how the different variations settings affect the font the website wakamaifondue is usefull, just drop the example font there and go to the variations tab to experiment with different settings.
TODO:
font.GetVariation(variationOptions)
. The equivalent in fontkit would befont.getVariation({wght: 300})
TryGetVariationAxes