Thread: CMake
View Single Post
Old 08-12-2017, 12:32 PM   #21
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 652
Default

Quote:
Originally Posted by MSK View Post
Awesome thanks. Looking at the class, only thing that isn't clear to me is how to set the font, what would the member calls look like for that?

MSK
I would suggest you to use create_global_font_from_path from ycairo base and to put it in the plugin constructor, then you will be able to use ycairo text with that font in any ycairo text instance. You can also use similar method in ycairo text. You can also use font from memory but you will need to declare font in resource.h and .rc for windows.

Btw, I am on vacation so I probably won't be able to reply you anymore until I get back.
__________________
Website | Facebook Page | IPlug-Youlean
Youlean is offline   Reply With Quote