unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Evan Straw <evan.straw99@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 40390@debbugs.gnu.org
Subject: bug#40390: Rendering problems when using fonts from Guix on foreign distro
Date: Wed, 22 Apr 2020 12:29:50 -0700	[thread overview]
Message-ID: <87ftcvl3o1.fsf@gmail.com> (raw)
In-Reply-To: <87blo5f38u.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 06 Apr 2020 10:05:37 +0200")

[-- Attachment #1: Type: text/plain, Size: 2455 bytes --]

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Evan,
>
> Evan Straw <evan.straw99@gmail.com> skribis:
>
>> I have Guix installed on a foreign distro (Ubuntu 19.10) as a package
>> manager, and I am attempting to use fonts installed through Guix for
>> applications installed from Guix, such as Emacs and keepassxc. I have
>> installed fontconfig and a few font packages. However, I am noticing
>> that these fonts seem to be interfering with fonts installed via the
>> system's package manager (APT) and are causing rendering problems in
>> non-Guix applications such as evince.
>>
>> The font packages I have installed from Guix are as follows:
>>
>> evan@virtualplaza:~$ guix package --list-installed | grep font
>> font-ubuntu	0.83	out	/gnu/store/6ydn8a96n2zmmrhjckqklfmg83frwl9w-font-ubuntu-0.83
>> font-gnu-freefont-ttf	20120503	out	/gnu/store/bp0hagiy6j8r0x11r4arsyv7k61lyqfk-font-gnu-freefont-ttf-20120503
>> font-dejavu	2.37	out	/gnu/store/yr42nyxrqkh89fanvii82br6qil4zcbx-font-dejavu-2.37
>> gs-fonts	8.11	out	/gnu/store/8ppj83wc1mmrdydh9cy7vqvg0bym8l0q-gs-fonts-8.11
>> font-adobe-source-han-sans	1.004	jp	/gnu/store/z9mgamhzwnh73w3y7q9flg54gmzr9kx7-font-adobe-source-han-sans-1.004-jp
>> fontconfig	2.13.1	out	/gnu/store/rkq6ipys8hf5hw66jkzzw4nfr6ncq96a-fontconfig-2.13.1
>> font-abattis-cantarell	0.111	out	/gnu/store/l0h8n4jn0xhj942gdh28i3rvbbywi613-font-abattis-cantarell-0.111
>>
>>
>> However, when I open a document in evince, the terminal spits out the
>> following errors about "cairo scaled fonts":
>>
>> (evince:19449): Pango-WARNING **: 10:28:58.135: failed to create cairo scaled font, expect ugly output. the offending font is 'Ubuntu 11'
>
> You may need to update the Fontconfig font cache by running:
>
>   fc-cache -fv
>
> (See
> <https://guix.gnu.org/manual/en/html_node/Application-Setup.html#X11-Fonts>.)
>
> Does that help?
>
> Thanks,
> Ludo’.

Hello! My apologies for leaving this hanging for so long.

It appears I had a fontconfig configuration file left over from a long
time ago that was intended to manually add the path for Guix fonts to
the fontconfig paths, so that I could use Ubuntu's fontconfig rather
than use fontconfig from Guix. I had forgotten it was even
there. Getting rid of it and re-caching the fonts like you said has
fixed the issue.

Not sure why I thought that was a good idea...

Thank you for your help!
-- Evan <evan.straw99@gmail.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2020-04-22 19:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02 17:35 bug#40390: Rendering problems when using fonts from Guix on foreign distro Evan Straw
2020-04-06  8:05 ` Ludovic Courtès
2020-04-22 19:29   ` Evan Straw [this message]
2020-04-22 19:53     ` Leo Famulari
2020-04-22 19:53     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ftcvl3o1.fsf@gmail.com \
    --to=evan.straw99@gmail.com \
    --cc=40390@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).