Hi,
I’m creating DLL which uses podofo.dll, and in constructor of one class, I’m
trying to create font from .ttf file which I added to Resources Files(Im using
Visual Studio).
I got resources.rc file:
IDR_FONT1 FONT "fonts\\AbhayaLibre-Bold.ttf"
IDR_FONT2 FONT "fonts\\AbhayaLibre-Regular.ttf"
And resources.h:
#define IDR_FONT1 101
#define IDR_FONT2 102
Then, in constructor:
pFont = pDocument->CreateFontSubset("AbhayaLibre-Regular", false, false, false,
new PdfIdentityEncoding(0, 0xffff, true), MAKEINTRESOURCEA(IDR_FONT1));
When I try to use it in program, i got Access violation reading location error
on the line above.
My question is, does CreateFontSubset() knows how to import font from resources
or am I doing something wrong?
To be honest, I’m working with resources for the first time, so I have no idea
if i’m doing it the right way.
Best regards,
Fryderyk
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users