Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no Recurse Font Search #5

Open
Daniel58 opened this issue May 13, 2012 · 2 comments
Open

no Recurse Font Search #5

Daniel58 opened this issue May 13, 2012 · 2 comments

Comments

@Daniel58
Copy link

It seems that mapnik do not search the fontdirectory recursely. I try to set this with FreetypeEngine.registerFonts("/usr/share/fonts/", true);

But the recurse boolean will be ignored.

/*
* Class: mapnik_FreetypeEngine
* Method: registerFonts
* Signature: (Ljava/lang/String;Z)Z
*/
JNIEXPORT jboolean JNICALL Java_mapnik_FreetypeEngine_registerFonts
  (JNIEnv *env, jclass c, jstring dirj, jboolean recurse)
{
PREAMBLE;
if (!dirj) return false;
refjavastring dir(env, dirj);

return mapnik::freetype_engine::register_fonts(dir.stringz);

TRAILER(false);
}
@springmeyer
Copy link

@Daniel58 - can you move this issue over to https://github.com/springmeyer/mapnik-jni/issues and I will fix?

@springmeyer
Copy link

fixed in my fork: springmeyer@5b1ef3c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants