Needs fontconfig integration

Bug #1576303 reported by Sebastien Bacher on 2016-04-28
66
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Snapcraft
Undecided
Unassigned
snapcraft (Ubuntu)
Medium
Unassigned

Bug Description

Seems that those variables are needed for fontconfig to work, ideally snapcraft would handle them for you

# Not good, needed for fontconfig
export XDG_DATA_HOME=$SNAP/usr/share

# Font Config
export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d
export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapcraft (Ubuntu):
status: New → Confirmed
Bruno Nova (brunonova) wrote :

I confirm that these are needed, at least for Java Swing applications.
They crash without this with a NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264).

Bruno Nova (brunonova) wrote :

I also needed to add these variables to package a Racket/Scheme game that I made several years ago.

I also needed to bundle some fonts with the snap, namely fonts-dejavu. Without them, instead of letters, only rectangles were displayed. In case of Java, it didn't even start.

Snapcraft should handle these variables.
I also think that snapd should grant access to the fonts and fontconfig directories/files of the system and user. That would be really useful for things like LibreOffice.

Adolfo Jayme (fitojb) on 2018-10-13
Changed in snapcraft (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers