1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 20:50:07 +00:00

FindProgDir is FindProgRoot in fontforge 20230101

This commit is contained in:
Pablo González L 2023-05-14 15:02:48 -04:00
parent 56db76d1ab
commit ed6528859b

View File

@ -19,7 +19,7 @@
#include "SignalHandler.h" #include "SignalHandler.h"
#include "ffw.h" // needed for: #include "ffw.h" // needed for:
#include "gfile.h" // FindProgDir #include "gfile.h" // FindProgDir => FindProgRoot in 20230101
#include "fontforge/autowidth.h" // FVRemoveKerns #include "fontforge/autowidth.h" // FVRemoveKerns
#include "fontforge/bitmapchar.h" // SFReplaceEncodingBDFProps #include "fontforge/bitmapchar.h" // SFReplaceEncodingBDFProps
#include "fontforge/cvimages.h" // FVImportImages #include "fontforge/cvimages.h" // FVImportImages
@ -71,7 +71,7 @@ void ffw_init(const char* progPath, int debug)
{ {
ffwSetAction("initialize"); ffwSetAction("initialize");
char *localProgPath = strdup(progPath); char *localProgPath = strdup(progPath);
FindProgDir(localProgPath); FindProgRoot(localProgPath);
InitSimpleStuff(); InitSimpleStuff();
if ( default_encoding==NULL ) if ( default_encoding==NULL )
default_encoding=FindOrMakeEncoding("ISO8859-1"); default_encoding=FindOrMakeEncoding("ISO8859-1");
@ -345,7 +345,7 @@ void ffw_reencode_raw2(const char ** mapping, int mapping_len, int force)
void ffw_cidflatten(void) void ffw_cidflatten(void)
{ {
if(!cur_fv->sf->cidmaster) if(!cur_fv->sf->cidmaster)
{ {
fprintf(stderr, "Cannot flatten a non-CID font\n"); fprintf(stderr, "Cannot flatten a non-CID font\n");
return; return;