mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Different font between host and target
@ 2014-12-10 15:57 John Telefonica
  2014-12-11 10:45 ` Juergen Borleis
  0 siblings, 1 reply; 5+ messages in thread
From: John Telefonica @ 2014-12-10 15:57 UTC (permalink / raw)
  To: ptxdist

Hello,

I have noticed that my Qt app has a different font size in target.
For example , If I want a Arial font with size 20, I need to setup font 
size in UI form to 28.

I have checked /etc/fonts/font.conf several times.

QFontDatabase recognize fonts that are installed in /usr/lib/fonts
"Arial"   --> familie
"6 7 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72 "   ---> smooth sizes

Then, I think is a problem of font config but I dont find out what is 
the problem.

any advice?


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Different font between host and target
  2014-12-10 15:57 [ptxdist] Different font between host and target John Telefonica
@ 2014-12-11 10:45 ` Juergen Borleis
  2014-12-11 13:54   ` John Telefonica
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Borleis @ 2014-12-11 10:45 UTC (permalink / raw)
  To: ptxdist

On Wednesday 10 December 2014 16:57:52 John Telefonica wrote:
> I have noticed that my Qt app has a different font size in target.
> For example , If I want a Arial font with size 20, I need to setup font
> size in UI form to 28.
>
> I have checked /etc/fonts/font.conf several times.
>
> QFontDatabase recognize fonts that are installed in /usr/lib/fonts
> "Arial"   --> familie
> "6 7 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72 "   ---> smooth sizes
>
> Then, I think is a problem of font config but I dont find out what is
> the problem.

Does Qt know the DPI value of your display?

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Different font between host and target
  2014-12-11 10:45 ` Juergen Borleis
@ 2014-12-11 13:54   ` John Telefonica
  2014-12-11 14:02     ` Juergen Borleis
  0 siblings, 1 reply; 5+ messages in thread
From: John Telefonica @ 2014-12-11 13:54 UTC (permalink / raw)
  To: ptxdist

Hello,

I am not tell Qt nothing about DPI value.
Where I setup this value? is it a environment variable?

Regards
John

El 12/11/2014 11:45 AM, Juergen Borleis escribió:
> On Wednesday 10 December 2014 16:57:52 John Telefonica wrote:
>> I have noticed that my Qt app has a different font size in target.
>> For example , If I want a Arial font with size 20, I need to setup font
>> size in UI form to 28.
>>
>> I have checked /etc/fonts/font.conf several times.
>>
>> QFontDatabase recognize fonts that are installed in /usr/lib/fonts
>> "Arial"   --> familie
>> "6 7 8 9 10 11 12 14 16 18 20 22 24 26 28 36 48 72 "   ---> smooth sizes
>>
>> Then, I think is a problem of font config but I dont find out what is
>> the problem.
> Does Qt know the DPI value of your display?
>
> Regards,
> Juergen
>


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Different font between host and target
  2014-12-11 13:54   ` John Telefonica
@ 2014-12-11 14:02     ` Juergen Borleis
  2014-12-11 21:51       ` John
  0 siblings, 1 reply; 5+ messages in thread
From: Juergen Borleis @ 2014-12-11 14:02 UTC (permalink / raw)
  To: ptxdist

Hi John,

On Thursday 11 December 2014 14:54:16 John Telefonica wrote:
> I am not tell Qt nothing about DPI value.
> Where I setup this value? is it a environment variable?

Environment variable is QWS_DISPLAY and the options are "mmWidth" 
and "mmHeight". Then Qt is able to calculate the DPI by itself.

Regards
Jürgen


-- 
Pengutronix e.K.                              | Juergen Borleis             |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] Different font between host and target
  2014-12-11 14:02     ` Juergen Borleis
@ 2014-12-11 21:51       ` John
  0 siblings, 0 replies; 5+ messages in thread
From: John @ 2014-12-11 21:51 UTC (permalink / raw)
  To: ptxdist

Hi,

I just find the problem.

Normally, I use  "export QWS_DISPLAY=LinuxFb" , but recently I made a 
change to use Multiple Displays "QWS_DISLPAY="Multi: VNC:0 LinuxFb". 
With first, Qt app tell me that DPI is 96, but second setup change to 72 
DPI.

With your advice, I have modified as follow: "QWS_DISPLAY="Multi: VNC:0 
LinuxFb:mmWidth=211:mmHeight=158" but DPI=72.
With "QWS_DISPLAY="Multi: LinuxFb:mmWidth=211:mmHeight=158" DPI is 96

It is like VNC driver override DPI setup. Why?

Best regards.

On 12/11/2014 03:02 PM, Juergen Borleis wrote:
> Hi John,
>
> On Thursday 11 December 2014 14:54:16 John Telefonica wrote:
>> I am not tell Qt nothing about DPI value.
>> Where I setup this value? is it a environment variable?
> Environment variable is QWS_DISPLAY and the options are "mmWidth"
> and "mmHeight". Then Qt is able to calculate the DPI by itself.
>
> Regards
> Jürgen
>
>


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-11 21:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-10 15:57 [ptxdist] Different font between host and target John Telefonica
2014-12-11 10:45 ` Juergen Borleis
2014-12-11 13:54   ` John Telefonica
2014-12-11 14:02     ` Juergen Borleis
2014-12-11 21:51       ` John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox