Home » U++ Library support » RichText,QTF,RTF... » Using Qtf forgets control font
Re: Using Qtf forgets control font [message #16699 is a reply to message #16680] |
Mon, 07 July 2008 22:51   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
cbpporter wrote on Mon, 07 July 2008 10:53 |
luzr wrote on Mon, 07 July 2008 16:30 | If you use QTF in label, font is ignored. (-> a feature, not a bug 
Mirek
|
Strange feature. A little counter-productive, but I guess I can compensate with extra Qtf. I tried something like this:
lblKun.SetFont(f).SetText("\1[!" + f.GetFaceName() + "! [3 " + ToUtf8(Join(kanji_.KunReading, EntrySeparator)) + "]]");
only to find out that using for 12 points is different from the StdFont height. Is there a function that takes a font height and return the Qtf magical number needed to obtain that size?
|
[/quote]
Unfortunately, things are a little bit more complicated (as usual). QTF is basically "physical unit format" (intended to be eventually printed). The unit is "dot" - 1/600 of inch. However, for screen displaying, there is zooming coeficient that is derived from Font-zoom.
Font "numbers" are tables of dots, but you can express the font height if you prepend it with '+', like "[+80 ...".
Mirek
[Updated on: Mon, 07 July 2008 22:51] Report message to a moderator
|
|
|
 |
|
Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Mon, 07 July 2008 15:30
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Mon, 07 July 2008 22:51
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: zsolt on Tue, 08 July 2008 14:38
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sat, 30 August 2008 14:05
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sat, 30 August 2008 14:53
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sun, 31 August 2008 10:46
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sun, 31 August 2008 10:51
|
 |
|
Re: Using Qtf forgets control font
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Mon, 01 September 2008 13:37
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Mon, 01 September 2008 14:46
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Thu, 04 September 2008 05:08
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sun, 07 September 2008 13:35
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Sun, 07 September 2008 14:08
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Sun, 07 September 2008 20:47
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Tue, 09 September 2008 02:15
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Tue, 09 September 2008 03:14
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Tue, 09 September 2008 08:53
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Wed, 10 September 2008 06:07
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Wed, 10 September 2008 08:08
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Wed, 10 September 2008 20:46
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Wed, 10 September 2008 21:27
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Wed, 10 September 2008 22:02
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Thu, 11 September 2008 06:56
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Fri, 12 September 2008 08:25
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Fri, 12 September 2008 11:15
|
 |
|
Re: Using Qtf forgets control font
By: mirek on Fri, 12 September 2008 17:00
|
 |
|
Re: Using Qtf forgets control font
By: cbpporter on Sat, 13 September 2008 19:19
|
Goto Forum:
Current Time: Mon Aug 04 18:05:05 CEST 2025
Total time taken to generate the page: 0.06931 seconds
|