|
|
On 24 Feb 2021, at 20:29, Manolo wrote:
>
> On Wednesday, February 24, 2021 at 8:38:48 PM UTC+1 Ian MacArthur wrote:
>
> Neat, didn’t know that worked.
>
> Can you change the scale factor during a draw() method? I wonder if you could use this technique to, for example, have the text scale “normally” with the DPI, but force lines always to be scale 1.0, or etc...?
>
> Please, look at my example program button.cxx that does exactly this.
Yeah, sorry Manolo, I didn’t ask the question well.
What I mean is whether we can draw the text at labelsize() (when “s" is not unity) and then once the text has drawn set “s" to 1 to draw the lines.
What the example does is set “s” to 1, then draw the text at (lablesize() * s) with the lines, but all with unit “s” - which has exactly the same effect I imagine, unless for some weird reason (lablesize() * s) is not the same as labelsize() at scale “s”...
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1E23EEB4-D962-4304-9E10-D0AA530AC023%40gmail.com.
[ Direct Link to Message ] | |
|
| |