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

U+2044 FRACTION SLASH does not create vulgar fractions #36

Open
dscorbett opened this issue Mar 19, 2023 · 2 comments
Open

U+2044 FRACTION SLASH does not create vulgar fractions #36

dscorbett opened this issue Mar 19, 2023 · 2 comments

Comments

@dscorbett
Copy link

Font

NotoSansMath-Regular.otf

Where the font came from, and when

Site: https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539
Date: 2023-03-18

Font version

Version 2.539

Issue

U+2044 FRACTION SLASH overlaps adjacent digits. The font should support 'numr' and 'dnom'.

Character data

2⁄3
U+0032 DIGIT TWO
U+2044 FRACTION SLASH
U+0033 DIGIT THREE

Screenshot

2⁄3

@khaledhosny
Copy link
Contributor

This also depends on the intended use of the font. In math layout, vulgar fractions are created by the layout engine (just like regular fractions), and the font provides data to control the positioning of the numerators and demonstrators as well as alternate fraction slash glyphs growing in size to be used for larger numerators and denominator as needed.

Supporting vulgar fractions in regular text layout would require additional numerator and denominator glyphs.

@khaledhosny
Copy link
Contributor

FWIW, math layout engines can make arbitrary fractions as they do the scaling of the numerators and denominators themselves:
image

The issue here is only for text mode, and supporting this requires adding pre-scaled versions of the digits once for numerators and once for denominators, and probably better done by the text font.

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

No branches or pull requests

2 participants