fonts used in the VCS commit dialog
Aleix Pol
aleixpol at kde.org
Wed Jan 20 10:18:25 UTC 2016
On Wed, Jan 20, 2016 at 11:09 AM, René J.V. <rjvbertin at gmail.com> wrote:
> Hi,
>
> Talking about pre- vs. user-configured appearance: I have a very strong impression that the commit message reflected in the VCS commit dialog is rendered using Courier. That's a font that's quite far from anything I have configured; where does this come from?
>
> I've been looking at the KMessageBox::createKMessageBox() code; it doesn't specify any fonts at all, nor does it take any action on the <pre></pre> tags that wrap the commit message when the dialog is created. The only font-related operations concern the QListWidget and QTextBrowser widgets that are potentially used, but I'm not yet certain for what.
>
> Shouldn't that commit message be shown in one of the KDE fonts, probably the same font used to compose it in the first place?
>
> R.
> _______________________________________________
> KDevelop-devel mailing list
> KDevelop-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop-devel
It requires a monospace font. We don't need to specify which font
specifically as the user can configure which fonts to use. At least on
Plasma. On OS X, it should use whatever
QFontDatabase::systemFont(QFontDatabase::FixedFont) suggests.
For OS X, nowadays, that's kCTFontUserFixedPitchFontType.
Aleix
More information about the KDevelop-devel
mailing list