Skip to content

wxWidgets:: bold font support#3334

Open
viklequick wants to merge 6 commits intoelfmz:masterfrom
viklequick:wx-add-bold-font-support
Open

wxWidgets:: bold font support#3334
viklequick wants to merge 6 commits intoelfmz:masterfrom
viklequick:wx-add-bold-font-support

Conversation

@viklequick
Copy link
Copy Markdown
Contributor

@viklequick viklequick commented Apr 4, 2026

Surely it is not the "real" bold font support as the bold characters are usually wider than the regular ones. So, it is a little bit trickery:

  • we're building bold font
  • but we're using the same metrics as for the regular font, so it becomes the same cell size.

In case the real bold font cannot be applied, wxWidgets makes the classic trick for us: it draws the same text twice with 1-pixel shift.

So, the code is trivial, but it is relied on the font being used.

SourceCode Pro, real bold font:
image

Iosevka, real bold font:
image

Lucida Console;, wx emulation:
image

Settings dialog:
image

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.

2 participants