Bug 90807 - android: Font embedding does not work
Summary: android: Font embedding does not work
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Android Viewer (show other bugs)
Version:
(earliest affected)
4.5.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: mabAndroid
  Show dependency treegraph
 
Reported: 2015-04-23 08:49 UTC by Jan Holesovsky
Modified: 2015-10-24 17:35 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Holesovsky 2015-04-23 08:49:25 UTC
https://bugs.documentfoundation.org/attachment.cgi?id=52732 is an example of font embedded in the .odt file.

I suppose saving the temporary file with the font & registering the font on Android does not work - worth checking what's going on.
Comment 1 Christian Lohmaier 2015-10-24 17:35:00 UTC
fixed. (at least looks the same as on linux :-))

fixed by using fonts-cache config that actually reflects the installation path via replacing var during build when converting buildsystem to gradle in ee8257a1c70eadb7330b0ee99ec3b86fe4084bdf, specifically:

http://cgit.freedesktop.org/libreoffice/core/diff/android/source/fonts.conf?id=ee8257a1c70eadb7330b0ee99ec3b86fe4084bdf

http://cgit.freedesktop.org/libreoffice/core/diff/android/source/build.gradle?id=ee8257a1c70eadb7330b0ee99ec3b86fe4084bdf

+    into('etc/fonts') {
+        from "./"
+        includes = ['fonts.conf']
+        filter {
+            String line ->
+                line.replaceAll(
+                        '@@APPLICATION_ID@@', new String("${android.defaultConfig.applicationId}")
+                )
+        }
+    }