servo / servo/font-kit

Unable to load fonts when linking with lld

Open
#114 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
840
Forks
137
Avg merge
4h 56m
Merged PRs (30d)
1

Description

Currently building a game with amethyst.rs, and any time I attempt to use the lld linker to speed up my iteration, I get the following error trying to load fonts:

Message("unknown variant TTF, there are no variants")

Loading no fonts explicitly -- and trying to fallback to the system default yields a spew of errors like the following, before failing to load any fonts:

"/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'...

A small bit of investigation revealed this may be due to the this package -- or a dependency -- using a bundled, incompatible fontconfig instead of the system's.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the font-loading failure when building with the lld linker, then inspect the package and its dependencies for the bundled fontconfig suspected in the report. Done means fonts load successfully with lld, including the system-default fallback, without the TTF or fontconfig parsing errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.