Skip to content

Bugfix 2 cell wide SymbolsOnly#1992

Open
Finii wants to merge 2 commits intomasterfrom
bugfix/2-cell-symbolsonly
Open

Bugfix 2 cell wide SymbolsOnly#1992
Finii wants to merge 2 commits intomasterfrom
bugfix/2-cell-symbolsonly

Conversation

@Finii
Copy link
Collaborator

@Finii Finii commented Mar 17, 2026

Description

Two changes by @ningw42 that came up when he wanted to create a 2 cell wide monospaced SymbolsOnly font.

Thanks for the contribution.

Requirements / Checklist

  • Read the Contributing Guidelines
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan.
    Issue number where discussion took place: #xxx
  • If this contains a font/glyph add its origin as background info below (e.g. URL)
  • Verified the license of any newly added font, glyph, or glyph set. License is: xxx

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

#1774

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

Finii added 2 commits March 17, 2026 19:44
[why]
If the user has a font where the widths are all zero (which
can happen due to a fontforge bug if that font has been
generated previously already) it is impossible to rectify
the situation by giving an explicit cell size.

[how]
First apply the settings from --cell and only afterwards check
if the width is sane - like it is already done for the font
height.

[note]
This will possibly not help if the same (broken) version of fontforge
is again used with the font-patcher script as there is the
possibility that fontforge 'corrects' our carfully set width to
zero again on generation.

[note]
Patch created with the help of some LLM tool.

Authored-by: Ning Wang @ningw42
Signed-off-by: Fini Jastrow <[email protected]>
[why]
When the scale rules include the two cell directive "2" the right aligned
icons are correctly moved, but the centered icons get not really centered
within the target of a 2 cell width.

[how]
Take the target width (1.0 or 2.0) into account also for centered glyphs.

[note]
Patch created with the help of some LLM tool.

Authored-by: Ning Wang @ningw42
Signed-off-by: Fini Jastrow <[email protected]>
@Finii Finii added the Bug fix label Mar 17, 2026
@Finii Finii changed the title Bugfix/2 cell symbolsonly Bugfix 2 cell wide SymbolsOnly Mar 17, 2026
@ningw42
Copy link

ningw42 commented Mar 25, 2026

Thank you for the instructions in #1774. I am not sure it reaches the quality requirement to be merged. I only tested those two things for my own use cases. If you are ok with it, I don't have any objection :P . Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants