Skip to content

Make fractions optional. - #260

Merged
JimBobSquarePants merged 3 commits into
mainfrom
js/fix-259
Apr 21, 2022
Merged

Make fractions optional. #260
JimBobSquarePants merged 3 commits into
mainfrom
js/fix-259

Conversation

@JimBobSquarePants

@JimBobSquarePants JimBobSquarePants commented Apr 19, 2022

Copy link
Copy Markdown
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

Fixes #259

Fractions should not be enabled by default and should be turned on only when user defined features contain.

A. Frac feature tag.
B. Numr and Dnom feature tags.

https://docs.microsoft.com/en-us/typography/opentype/spec/features_fj#tag-frac

@JimBobSquarePants JimBobSquarePants added this to the 1.0.0-rc1 milestone Apr 19, 2022
@codecov

codecov Bot commented Apr 19, 2022

Copy link
Copy Markdown

Codecov Report

Merging #260 (b7e2f3e) into main (0b2bde9) will increase coverage by 0%.
The diff coverage is 100%.

@@         Coverage Diff         @@
##           main   #260   +/-   ##
===================================
  Coverage    83%    83%           
===================================
  Files       186    186           
  Lines      9457   9474   +17     
  Branches   1486   1493    +7     
===================================
+ Hits       7919   7936   +17     
  Misses     1193   1193           
  Partials    345    345           
Flag Coverage Δ
unittests 83% <100%> (+<1%) ⬆️

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

Impacted Files Coverage Δ
...ables/AdvancedTypographic/Shapers/DefaultShaper.cs 98% <100%> (+<1%) ⬆️

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 0b2bde9...b7e2f3e. Read the comment docs.

this.AssignFractionalFeatures(collection, index, count);
}

// Add user defined features.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe make this an extra method name instead of a comment?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Och it's just a for-loop. I wouldn't bother.

@brianpopow brianpopow left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@JimBobSquarePants
JimBobSquarePants merged commit 5359ec7 into main Apr 21, 2022
@JimBobSquarePants
JimBobSquarePants deleted the js/fix-259 branch April 21, 2022 12:26
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.

Verdana font layout broken with numeric digits

3 participants