COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 07-23-2017, 09:17 AM   #1
TonyGlover
Human being with feelings
 
TonyGlover's Avatar
 
Join Date: Mar 2016
Posts: 70
Default Font sizes on MacOSX

The plugins builded for MacOSX have larger fonts compared to the windows version and seem to be bold, even if I set IText::kStyleNormal

How can I fix this ?
TonyGlover is offline   Reply With Quote
Old 07-23-2017, 01:15 PM   #2
random_id
Human being with feelings
 
random_id's Avatar
 
Join Date: May 2012
Location: PA, USA
Posts: 356
Default

I do my fonts like this
Code:
// Text setup
#ifdef OS_OSX
static char* fontName = "SomeFont";
static IText::EQuality texttype = IText::kQualityAntiAliased;
static int lf = 11;

#else
static char* fontName = "SomeFont";
static IText::EQuality texttype = IText::EQuality::kQualityClearType;
static int lf = 12;
#endif
static IText lFont(lf, &COLOR_BLACK, fontName, IText::kStyleNormal, IText::kAlignCenter, 0, texttype);
It is not the most elegant, but it works. Normally one size smaller for OS X is pretty close to the same.

Also, make sure that the font is installed on the Windows and OS X computer. This sounds obvious, but a default font will be substituted if the named font isn't found.
__________________
Website: LVC-Audio
random_id is offline   Reply With Quote
Old 07-24-2017, 02:49 AM   #3
TonyGlover
Human being with feelings
 
TonyGlover's Avatar
 
Join Date: Mar 2016
Posts: 70
Default

Thanks !

Not so elegant, but is easy and it works. Still cannot remove bold style on MacOSX
TonyGlover 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 01:49 AM.


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