- Posts: 45
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Save font method not working
IP: 192.168.0.71
8 years 10 months ago #12323
by Pja
Save font method not working was created by Pja
Hi,
When in the App_init() method the font Arial is saved Global_SaveFont the given method is returning nothing.
The applications hangs and further methods are not executed. What could be the reason for this?
When in the App_init() method the font Arial is saved Global_SaveFont the given method is returning nothing.
The applications hangs and further methods are not executed. What could be the reason for this?
IP: 192.168.0.71
8 years 10 months ago #12324
by emanuele
Replied by emanuele on topic Save font method not working
Hi,
this error could be caused by a wrong font path or if the font file doesn't exist
this error could be caused by a wrong font path or if the font file doesn't exist
IP: 192.168.0.71
8 years 10 months ago #12328
by Pja
Replied by Pja on topic Save font method not working
Hi,
In the following code
strcpy( dst, dd1 );
strcat( dst, "/Arial.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Arial", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);
strcpy( dst, dd1 );
strcat( dst, "/Verdana.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Verdana", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);
Global_SaveFont creates the mentioned font in Cache folder. While executing this method the app hangs.
In the following code
strcpy( dst, dd1 );
strcat( dst, "/Arial.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Arial", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);
strcpy( dst, dd1 );
strcat( dst, "/Verdana.ttf" );
if( ![fileManager fileExistsAtPath:NSString alloc] initWithUTF8String:dst )
{
if( Global_SaveFont("Verdana", dst) )
Global_fontfileListAdd(dst);
}
else Global_fontfileListAdd(dst);
Global_SaveFont creates the mentioned font in Cache folder. While executing this method the app hangs.
IP: 192.168.0.71
8 years 10 months ago #12329
by Pja
Replied by Pja on topic Save font method not working
Is there anything else that i am missing as a part of initialisation?
IP: 192.168.0.71
8 years 10 months ago #12330
by emanuele
Replied by emanuele on topic Save font method not working
It seems you are using an old version of the SDK, because the code mentioned by you has been removed.
I suggest to download the updated version here: www.radaeepdf.com/download/file/83-radaeepdf-3-8-1
Other about integration: be sure to include cmaps and fdat folders into your project using "Create folder references" option
I suggest to download the updated version here: www.radaeepdf.com/download/file/83-radaeepdf-3-8-1
Other about integration: be sure to include cmaps and fdat folders into your project using "Create folder references" option
Time to create page: 0.438 seconds