Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Ok, I just thought that knowing capital letter height I can calculate correct font pixel size but seems using font metrics and iteration over pixel sizes is the only option. Thank you all for help! czw., 18 paź 2018, 01:04 użytkownik Allan Sandfeld Jensen napisał: > On Donnerstag, 18. Oktober

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Allan Sandfeld Jensen
On Donnerstag, 18. Oktober 2018 00:58:14 CEST Allan Sandfeld Jensen wrote: > On Mittwoch, 17. Oktober 2018 22:11:38 CEST Tomasz Olszak wrote: > > Ok, > > It's a lot more clear. Thank you for explanation! > > > > I used default font with pixel size 100 and according to FontMetrics: > > 1. family:

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Allan Sandfeld Jensen
On Mittwoch, 17. Oktober 2018 22:11:38 CEST Tomasz Olszak wrote: > Ok, > It's a lot more clear. Thank you for explanation! > > I used default font with pixel size 100 and according to FontMetrics: > 1. family: "Sans Serif" > 2. pointSize: 75 > 3. pixelSize: 100 > 4. ascent 93 > 5. descent: 24 >

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Ok, It's a lot more clear. Thank you for explanation! I used default font with pixel size 100 and according to FontMetrics: 1. family: "Sans Serif" 2. pointSize: 75 3. pixelSize: 100 4. ascent 93 5. descent: 24 6. height: 117 7. leading -1 So how ascent, descent, leading is related to 100. How

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Jason H
+1. Make sure that you are accounting for the full font height, see QFontMetrics::ascent() and descent() > Sent: Wednesday, October 17, 2018 at 1:23 PM > From: "Allan Sandfeld Jensen" > To: development@qt-project.org > Subject: Re: [Development] Why on Linux using FreeType engine fonts are >

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Allan Sandfeld Jensen
On Mittwoch, 17. Oktober 2018 19:10:45 CEST Tomasz Olszak wrote: > Could you please try example I sent on Linux and explain why font size > doesn't match rectangle size? Maybe the ft font engine has bug? > Try putting a capital Å or any other capital with accents in your example, and you will

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Could you please try example I sent on Linux and explain why font size doesn't match rectangle size? Maybe the ft font engine has bug? śr., 17 paź 2018, 19:07 użytkownik Allan Sandfeld Jensen napisał: > Hi > > That is a incorrect assesment. Fonts are rendered in pixel sizes. When you > request

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Allan Sandfeld Jensen
Hi That is a incorrect assesment. Fonts are rendered in pixel sizes. When you request a QFont at a certain pixel size you get the font in that size. It should be noted that those sizes ONLY matter for things like pixel hinting. The font will typically be rendered in the same size it was

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Sorry accidental Shift+Enter https://pastebin.com/m2tAgT3f For my screens QScreen::physicalDotsPerInch() return ~92dpi instead of 96 but it is probably due to some platform edid implementation or something like that. śr., 17 paź 2018 o 19:04 Tomasz Olszak napisał(a): > > Here you can find and

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Here you can find and example of what I believe is true: śr., 17 paź 2018 o 18:48 Tomasz Olszak napisał(a): > > If I understand correctly font.pixelSize is actually not the same as > pixels user for with and height of items. So if you render rectangle > of height e.g 100 pixels on 96 dpi screen,

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
If I understand correctly font.pixelSize is actually not the same as pixels user for with and height of items. So if you render rectangle of height e.g 100 pixels on 96 dpi screen, and render Text with font.pixelSize = 100 on 96 screen the iheight of text will be exactly 100 * 72/96 which is

Re: [Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Jason H
A pixel is a pixel, regardless of DPI. However things matter when you use point sizes (which assumes 72 points per inch) there are also Screen.devicePixelRatio ( http://doc.qt.io/qt-5/qml-qtquick-window-screen.html#devicePixelRatio-attached-prop ) to contend with. I haven't had to worry about

[Development] Why on Linux using FreeType engine fonts are rendered in 72 dpi instead of Screen DPI?

2018-10-17 Thread Tomasz Olszak
Hi, I would like just to ensure that I missed something and there is documentation somewhere informing that Linux fonts are rendered *always* in 72 dpi (https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Set_Char_Size) (which makes font.pixelSize inaccurate for regular

Re: [Development] Qt 5.12 beta2 released

2018-10-17 Thread Jani Heikkinen
> -Original Message- > From: Development project.org> On Behalf Of Mark De Wit > Sent: keskiviikko 17. lokakuuta 2018 10.10 > To: development@qt-project.org > Subject: Re: [Development] Qt 5.12 beta2 released > > What is the criteria for blocker? There isn't exact definition for

Re: [Development] Qt 5.12 beta2 released

2018-10-17 Thread Mark De Wit
It's great to see a resolution so close... I'll see if I can find time to try the patch locally. Really appreciate the work going into it! Kind regards, Mark -Original Message- From: Michal Klocek Sent: 17 October 2018 09:32 To: Mark De Wit ; development@qt-project.org Subject: Re:

Re: [Development] Qt 5.12 beta2 released

2018-10-17 Thread Michal Klocek
I am sorry for delay, I know it is important issue so marked it for 5.11.3 now. Patches have to go though coin still, which may take a while. Br Michal On 10/17/2018 09:10 AM, Mark De Wit wrote: > What is the criteria for blocker? It would be great if WebEngine were > usable again for people

Re: [Development] Qt 5.12 beta2 released

2018-10-17 Thread Kai Koehne
> -Original Message- > From: Development project.org> On Behalf Of Mark De Wit > Sent: Wednesday, October 17, 2018 9:10 AM > To: development@qt-project.org > Subject: Re: [Development] Qt 5.12 beta2 released > > What is the criteria for blocker? It would be great if WebEngine were

Re: [Development] Qt 5.12 beta2 released

2018-10-17 Thread Mark De Wit
What is the criteria for blocker? It would be great if WebEngine were usable again for people behind proxies (my last usable Qt release is 5.9)... https://bugreports.qt.io/browse/QTBUG-69281 is marked as P1 but not targeted at 5.12? Kind regards, Mark -Original Message- From: