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

Some fonts not defaulting to system font #556

Closed
Irihapeti opened this issue Nov 6, 2020 · 2 comments
Closed

Some fonts not defaulting to system font #556

Irihapeti opened this issue Nov 6, 2020 · 2 comments
Labels
bug Something isn't working unconfirmed

Comments

@Irihapeti
Copy link

OS version is Resurrection Remix (Android 10) on a Moto G7 Power
Collabora version is 4.2.11 from Google Play

I have an issue with font display. It seems that fonts which are not part of the system (or maybe provided with Collabora - I'm not sure) are displayed as Burnstown Dam, which makes them extremely difficult to read. However, if they are formatted as bold or italic, they are displayed as the system font, which is what I'd expect from the plain version as well.

I have the same version of Collabora on Android 9 (also Resurrection Remix) on a Moto G4 Play, and the problem doesn't appear. All versions of the fonts are visible as the system font.

These are all documents that originated elsewhere, either on my (Linux) desktop PC or received via email.

Screenshot is attached. Paragraphs 3 and 4, which are using system font throughout, are using Ubuntu font.

Screenshot_20201107-045345480

@Irihapeti Irihapeti added bug Something isn't working unconfirmed labels Nov 6, 2020
@Irihapeti
Copy link
Author

Update:

This seems to happen only on Resurrection Remix, which contains a number of fancy fonts.

A workaround, in case anyone else has this problem, involves editing /data/data/com.collabora.libreoffice/etc/fonts/fonts.conf, which requires root access.

Removing access to the /system/fonts folder gets rid of the fancy font, but renders most fonts as monospace.

Adding the following at the bottom of the file causes all undesignated fonts to default to the chosen font, Liberation Sans in this case.

<match target="pattern"> <test qual="all" name="family" compare="not_eq"><string>monospace</string></test> <edit name="family" mode="append_last"><string>Liberation Sans</string></edit> </match>

Using an alias such as sans-serif doesn't work; a specific font name is needed and it needs to be one found in /data/data/com.collabora.libreoffice/user/fonts

@Irihapeti
Copy link
Author

This is something of a corner case, and therefore I don't see much point in leaving it open.

Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working unconfirmed
Projects
None yet
Development

No branches or pull requests

1 participant