Skip to content

KFontChooser: always prepend the default font style in the styles list

Ahmad Samir requested to merge work/ahmad/fontdialog into master

The code tries to select a certain style when a font family is selected, and falls back to selecting the style at index 0, this way it works for e.g. DejaVu Sans font family which uses "Book" instead of "Regular".

Merge request reports