lazpaint icon indicating copy to clipboard operation
lazpaint copied to clipboard

When selecting a typeset of an added font. Selection is not executed or saved.

Open DNPLukeBu opened this issue 1 year ago • 2 comments

I formerly used Windows 10 and paintdotnet. After switching to Bazzite Linux I found lazpaint to be similar and convenient. I have a project I have been working on for almost a decade. I just realized I will need to have the font Bahnschrift Condensed or rewrite thousands of lines of text. I added to the font to my system, and confirmed that the typesets looked correct in "system settings > font management." When using the "Text" tool, all typesets in families switch perfectly, except those in the added Bahnshrift. All Bahnshrift typesets, when selected, look like Regular, and regular is selected when I click "choose font" again. I have tried reinstalling the fonts, and lazpaint, to no avail.

System info: KDE Plasma 6.2.4 KDE Frameworks 6.9.0 Qt 6.8.1 Kernel 6.12.6-203.bazzite.fc41.x86_64 (64-bit) Graphics Wayland lazpaint 7.2.2_linux64_no_install

DNPLukeBu avatar Jan 05 '25 18:01 DNPLukeBu

Thank you for reporting this issue and providing detailed system information. I appreciate your patience.

I’ve looked into how fonts are recognized on Linux, and Bahnschrift uses a single family name ("Bahnschrift"), while variants like "Condensed" are stored in the style attribute. It’s possible that LazPaint (or the underlying LCL framework) isn’t handling these correctly on Linux, which could explain why all Bahnschrift variants appear as Regular.

I’ll investigate how LCL detects and applies font styles and see if there's a way to work around this limitation.

Regards

circular17 avatar Jan 30 '25 13:01 circular17

I confirm it is an LCL issue that cannot be handled at LazPaint's level. I've proposed a patch for Lazarus on its bugtracker:

circular17 avatar Feb 22 '25 10:02 circular17