fonts used in the VCS commit dialog

Aleix Pol aleixpol at kde.org
Wed Jan 20 12:23:00 UTC 2016


On Wed, Jan 20, 2016 at 11:43 AM, René J.V. <rjvbertin at gmail.com> wrote:
> On Wednesday January 20 2016 11:18:25 Aleix Pol wrote:
>
>>It requires a monospace font.
>
> Why? The commit message editor doesn't use one as far as I know?

Yes, it uses monospace:
http://i.imgur.com/q6Fz21B.png

>
>>We don't need to specify which font
>>specifically as the user can configure which fonts to use. At least on
>>Plasma.
>
> If you mean throught the fonts kcm then yes, the user can configure whatever s/he likes, but no, that doesn't appear to be taken into account.
> That would make sense if my hunch is correct that a Qt widget is responsible for the font selection.
>
>>On OS X, it should use whatever
>>QFontDatabase::systemFont(QFontDatabase::FixedFont) suggests.
>
> I'm seeing the suspect font on OS X and on Linux, in KDevelop4 and KDevelop5.
>
>>For OS X, nowadays, that's kCTFontUserFixedPitchFontType.
>
> Define nowadays please? There *is* a hidden way to configure which fonts are used in OS X applications, but even without that one should never see Courier as the default monospaced font.

In my Qt 5.6 branch:
$ git grep kCTFontUserFixedPitchFontType
src/platformsupport/fontdatabases/mac/qcoretextfontdatabase.mm:
return kCTFontUserFixedPitchFontType;

Aleix


More information about the KDevelop-devel mailing list