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

font-patcher: Drop box-drawing from SymbolsOnly #1211

Merged
merged 1 commit into from
May 7, 2023

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented May 7, 2023

[why]
The Box Drawing glyphs need to be carefully scaled. This can not be done if the glyphs are pulled in via font-fallback I guess.

As people may have the fontconfig set up in a way to prefer the Symbols Only font these glyphs could overrule other box drawing glyphs that might fit better.

I'm not really sure about this one, but the glyphs look rather bad anyhow, because they end up in the 1:1 ascpect ratio cell of the Symbols Only font.

[how]
Just turn the set off if we patch the Symbols Only font. Need to swap around two subroutine calls for that; first detect if we are patching the Symbols Only font (through the font metrics) and then set the patch sets up.

Fixes: #1210

Requirements / Checklist

What does this Pull Request (PR) do?

Drop the box drawing glyphs from the Symbols Only font(s).
They have been introduced with 3.0.0

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

[why]
The Box Drawing glyphs need to be carefully scaled. This can not be done
if the glyphs are pulled in via font-fallback I guess.

As people may have the fontconfig set up in a way to prefer the Symbols
Only font these glyphs could overrule other box drawing glyphs that
might fit better.

I'm not really sure about this one, but the glyphs look rather bad
anyhow, because they end up in the 1:1 ascpect ratio cell of the Symbols
Only font.

[how]
Just turn the set off if we patch the Symbols Only font.
Need to swap around two subroutine calls for that; first detect if we
are patching the Symbols Only font (through the font metrics) and then
set the patch sets up.

Fixes: #1210

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii added this to the v3.0.1 milestone May 7, 2023
@Finii Finii merged commit 7e0c17c into master May 7, 2023
@Finii Finii deleted the bugfix/no-box-in-symonly branch May 7, 2023 08:19
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.

Box drawing glyphs are in Symbols Only font
1 participant