Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 12-04-2023, 04:34 AM   #1
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,353
Default reascript BUG in reaper.gfx_setfont on linux or other os

gfx_setfont(idx[,fontface, sz, flags]) -- REAPER 4.59+

sz reacts like a scale factor


Code:
size=0
gfx_setfont(1,"Arial", 11*size,'b')

Code:
gfx_setfont(1,"Arial",0,'b');
will show in windows a visible font


and will show in linux (debian bookworm)a font with size 0 , that could be correct because 11*0 is 0 (hey , i can maths )

i stumbled upon this while loading the tukan December Synth version 0.0.1 and 0.0.2 , since 0.0.3 the size is set correctly

Last edited by bobobo; 12-04-2023 at 02:58 PM.
bobobo is offline   Reply With Quote
Old 12-04-2023, 08:34 PM   #2
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,716
Default

Probably the Windows behavior is a bit of an outlier here, should specify a size?
Justin is offline   Reply With Quote
Old 12-04-2023, 10:48 PM   #3
bobobo
Human being with feelings
 
bobobo's Avatar
 
Join Date: Oct 2014
Posts: 1,353
Default

hi justin,
i guess IF a size is given (in the tukan synth 0.0.1 and 0.0.2 the size cumulates to zero) it should actual be zero 0 in all os (consistent behaviour), if the sz if not given, it can default to a value.

greetings
bobobo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.