Problems with fonts

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
bx_joscha
Posts: 44
Joined: Thu Aug 24, 2017 6:21 am

Problems with fonts

Postby bx_joscha » Fri Sep 07, 2018 7:34 am

Hello,

I am currently going through some trouble using fonts in VSTGUI. What I want to achieve is to use arbitrary TTF fonts in VSTGUI-based plugin editors without the need of having them installed in the system.

On Mac OS, I have managed to access the fonts by manually registering them to the operating system using the command CTFontManagerRegisterFontsForURL. That works perfectly fine.

How to do that on Windows? I am only able to use fonts that are stored in the system fonts folder. Is it possible to directly register fonts contained in the Resources that are compiled using a resource compiler, as we use PNG graphics from the resources by using FindResourceA in file win32support.cpp?

Thanks in advance,

Joscha

Arne Scheffler
Posts: 205
Joined: Mon Jun 20, 2016 7:53 am

Re: Problems with fonts

Postby Arne Scheffler » Fri Sep 07, 2018 9:46 am

Hi Joscha,
for Direct2D it looks like IDWriteFactory::RegisterFontCollectionLoader () API could be used.

Cheers,
Arne

bx_joscha
Posts: 44
Joined: Thu Aug 24, 2017 6:21 am

Re: Problems with fonts

Postby bx_joscha » Fri Sep 07, 2018 10:58 am

Arne Scheffler wrote:Hi Joscha,
for Direct2D it looks like IDWriteFactory::RegisterFontCollectionLoader () API could be used.

Cheers,
Arne


Thank you. I already thought about that option. I will try that.

bx_joscha
Posts: 44
Joined: Thu Aug 24, 2017 6:21 am

Re: Problems with fonts

Postby bx_joscha » Fri Sep 07, 2018 11:58 am

Working now.


Return to “VSTGUI”

Who is online

Users browsing this forum: No registered users and 1 guest