Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Don't set custon fontconfig #574

Closed
DhruvaSambrani opened this issue Jun 1, 2021 · 3 comments
Closed

Don't set custon fontconfig #574

DhruvaSambrani opened this issue Jun 1, 2021 · 3 comments

Comments

@DhruvaSambrani
Copy link

It seems that setting a different fontconfig prevents using emoji fonts in GTK Entry, among other issues
GTK.jl should not override system fontconfig

@giordano
Copy link
Contributor

giordano commented Jun 1, 2021

Do you mean the FONTCONFIG_FILE and FONTCONFIG_PATH environment variables? They are set in https:/JuliaBinaryWrappers/Fontconfig_jll.jl/blob/4a774dc6b40531890eb0cc37b09976802ac1bbf1/src/wrappers/x86_64-linux-gnu.jl#L80-L81 and they do not override system defaults if those variables are already set.

@DhruvaSambrani
Copy link
Author

Oh, right.

However, hitting ctrl+. in an Entry widget shows the emoji popup, but no emojis are actually rendered. Other gtk apps work, so its not a system wide issue. The UI was made with glade, and running glade-previewer with the glade file works fine too. So the only layer which could be causing the issue is GTK.jl

@giordano
Copy link
Contributor

giordano commented Jun 1, 2021

I mean, you need to set FONTCONFIG_FILE to the desired value to ensure your system fontconfig is used. What Fontconfig_jll does it to provide a default in case there are no other options.

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

No branches or pull requests

2 participants