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

How to install? #1

Open
Dugnist opened this issue Oct 29, 2020 · 2 comments
Open

How to install? #1

Dugnist opened this issue Oct 29, 2020 · 2 comments

Comments

@Dugnist
Copy link

Dugnist commented Oct 29, 2020

How to install these fonts to google chrome?

@dylangerdaly
Copy link

I'm wondering where too.
I think it might be easier to hook the OS call somewhere, I don't want to maintain a fork of Chromeium.

@dylangerdaly
Copy link

dylangerdaly commented Nov 12, 2020

If there's anyone still wondering how to do this, you're better off setting it up in /etc/fonts/conf.d/21-force-apple-font.conf
with

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
  <test qual="any" name="family"><string>-apple-system</string></test>
  <edit name="family" mode="assign" binding="same"><string>SF Pro Text</string></edit>
</match>
</fontconfig>

This will replace any font requests for -apple-system with the installed SF Pro Text

Resulting in Github and Twitter rendering with Apple's SF font, regardless of what browser you're using.

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

No branches or pull requests

2 participants