[Interest] scale all fonts

Till Oliver Knoll till.oliver.knoll at gmail.com
Tue Mar 19 19:05:32 CET 2013



Am 19.03.2013 um 14:19 schrieb Hamish Moffatt <hamish at risingsoftware.com>:

> On 19/03/2013 10:55 PM, Rutledge Shawn wrote:
>> On 19 Mar 2013, at 11:27 AM, Hamish Moffatt wrote:
>> 
>>> Is it possible to apply a scaling to all font sizes used in an application?
>>> 
>>> I can see Qt is doing the right thing by converting point sizes to pixel
>>> sizes in accordance with the DPI of the display. Now suppose I want to
>>> override the DPI, or redefine point to be other than 1/72" (achieves the
>>> same). Is this possible?
>> Unless you are on MacOS, you can override the DPI system-wide.  X11 has multiple ways (xorg.conf, and startx -- -dpi 72 or whatever); in Windows you can do it in the display control panel.
> I'd like to do it in the application, not system-wide. Can I override 
> the DPI that Qt has detected from the OS somehow?

Did you try 

  http://qt-project.org/doc/qt-5.0/qtwidgets/qapplication.html#styleSheet-prop

and setting the QFont property?

Cheers,
  Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130319/56dec63b/attachment.html>


More information about the Interest mailing list