[Bug 755375] Fonts not copied properly on Android.

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Sep 22 17:18:54 PDT 2015


https://bugzilla.gnome.org/show_bug.cgi?id=755375

--- Comment #6 from Carl Kovamees <carl at kovamees.com> ---
The font is in
http://cgit.freedesktop.org/gstreamer/sdk/cerbero/tree/data/ndk-build/fontconfig/fonts/Ubuntu-R.ttf

When I unzip the android package it goes into:
share/gst-android/ndk-build/fontconfig/fonts

There is no truetype sub-directory. That is the problem.

When the GStreamer.init() copies the fonts, it's looking for the for
"fontconfig/fonts/truetype", that doesn't exist by default.

for(String filename : assetManager.list("fontconfig/fonts/truetype")) {
                File font = new File(fontsDir, filename);
                copyFile (assetManager, "fontconfig/fonts/truetype/" +
filename, font);
            }


The only thing I had to do was to create the truetype directory and move the
font there.

I made no other changes, not altering font.config etc. GStreamer.init() was
executed and set all the paths etc as you describe. XDG_DATA_HOME is set in
gstreamer_andoir-1.0.c and the method gst_android_init (called from
GStreamer.init().

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list