https://bugs.kde.org/show_bug.cgi?id=529192

            Bug ID: 529192
           Summary: Preview text is ignored for some language/font
                    combinations
    Classification: Applications
           Product: kfontview
      Version First 6.8.2
       Reported In:
          Platform: CachyOS
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
Viewing the Px437_IBM_VGA_8x16.ttf font (and I expect all other cp 437 fonts)
in the font pack from int10h.org causes the program to show its own preview
text, seemingly consisting of all glyphs in the font, instead of the default or
custom-typed preview text.

My system language is Bulgarian and so the default preview text when opening
the program is in Cyrillic which can not be displayed with that font. That's ok
- if it displayed a broken preview or even if it swapped it for its own "all
glyphs" preview just in that case things would have been fine. But even when I
click "change text" and enter some Latin preview text, for example a simple
"test" the preview still ignores it and continues to display all glyphs.

If I run the program from terminal with `LC_ALL=en_US.UTF8 kfontview
Px437_IBM_VGA_8x16.ttf` the preview starts working and respecting the typed
text - even the default Bulgarian text is respected if entered, and displayed
with rectangle placeholder characters instead of completely ignored.

You can download the font pack from int10h.org or just this specific font from
my attachment.

STEPS TO REPRODUCE
1. Have a system set to Bulgarian
2. Download the Px437_IBM_VGA_8x16.ttf from the attachment
3. If your system is set to Bulgarian right-click the downloaded file and chose
to open it with KFontView
4. Click "Промяна на текста" ("Change text") and type some Latin text, for
example "test"

OBSERVED RESULT
The typed text is ignored, the preview continues to display all font glyphs,
and there is no indication about why in the UI.

EXPECTED RESULT
The preview text is shown in the preview area

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux
KDE Plasma Version: 6.8.2
KDE Frameworks Version: 6.31.0
Qt Version: 6.12.0

ADDITIONAL INFORMATION
I expect you can also test this easier if you install a Cyrillic locale such as
"bg_BG.UTF8" and run `LC_ALL=bg_BG.UTF8 kfontview Px437_IBM_VGA_8x16.ttf` in
the directory of the font, so you don't have to switch your whole system's
language.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to