SixLabors / Fonts

:black_nib: Font loading and layout library.
https://sixlabors.com/products/fonts
Other
308 stars 71 forks source link

CFF: Support for FD Select, Format 0 #286

Closed brianpopow closed 2 years ago

brianpopow commented 2 years ago

Prerequisites

Description

This PR adds support for parsing FD Select format 0 for Compact Font Format as described in the spec page 29, table 27.

codecov[bot] commented 2 years ago

Codecov Report

Merging #286 (99ddb66) into main (863ac8c) will increase coverage by 0%. The diff coverage is 77%.

@@          Coverage Diff          @@
##            main    #286   +/-   ##
=====================================
  Coverage     83%     83%           
=====================================
  Files        222     222           
  Lines      12199   12211   +12     
  Branches    1759    1761    +2     
=====================================
+ Hits       10159   10191   +32     
+ Misses      1610    1591   -19     
+ Partials     430     429    -1     
Flag Coverage Δ
unittests 83% <77%> (+<1%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/SixLabors.Fonts/Tables/Cff/FDRangeProvider.cs 77% <73%> (+1%) :arrow_up:
src/SixLabors.Fonts/Tables/Cff/CffParser.cs 69% <85%> (+4%) :arrow_up:
src/SixLabors.Fonts/Tables/Cff/CidFontInfo.cs 100% <100%> (ø)
.../SixLabors.Fonts/Tables/Cff/CffEvaluationEngine.cs 54% <0%> (+2%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 863ac8c...99ddb66. Read the comment docs.