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

Glyph indices #72

Merged
merged 9 commits into from
Jul 18, 2022
Merged

Conversation

jkrumbiegel
Copy link
Collaborator

@jkrumbiegel jkrumbiegel commented Jul 16, 2022

This PR changes the base glyph representation to a UInt64 index, which can directly pick a glyph out of a font without the unicode char detour. This allows the methods to work for special scenarios like in MathTeXEngine.jl

The old way of accessing things via Char should still work, they are just converted to UInt64 indices along the way. The same for String which can access a glyph by name if there's one (like integral.v1).

Because of the string name based glyph finding, and because that functionality is not used anymore in Makie (and elsewhere?) I've removed methods for simple string layouts / boundingboxes.

@codecov
Copy link

codecov bot commented Jul 16, 2022

Codecov Report

Merging #72 (2167535) into master (0fa364e) will increase coverage by 3.35%.
The diff coverage is 97.22%.

@@            Coverage Diff             @@
##           master      #72      +/-   ##
==========================================
+ Coverage   91.26%   94.62%   +3.35%     
==========================================
  Files           6        6              
  Lines         332      316      -16     
==========================================
- Hits          303      299       -4     
+ Misses         29       17      -12     
Impacted Files Coverage Δ
src/types.jl 94.23% <93.75%> (+10.39%) ⬆️
src/layout.jl 100.00% <100.00%> (+2.32%) ⬆️
src/rendering.jl 98.23% <100.00%> (+0.90%) ⬆️

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 d0598f6...2167535. Read the comment docs.

@jkrumbiegel jkrumbiegel marked this pull request as ready for review July 18, 2022 19:55
@jkrumbiegel jkrumbiegel merged commit b7d6d65 into JuliaGraphics:master Jul 18, 2022
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.

1 participant