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

Produce CSS in which local fonts are not used #4

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

RLesur
Copy link
Contributor

@RLesur RLesur commented Feb 15, 2020

Hi @pvictor, @mfanny,

Thanks a lot for this beautiful gem (as usual 😉)!

This PR is a proposal to allow the user to remove the local source which is here:

src: local('{variant$local[[1]][1]}'), local('{variant$local[[1]][2]}'),

In fact, I have some use cases in which I need to remove the precedence of user installed fonts over downloaded fonts:

  • user installed font version is different than the downloaded font version. In this case, I want to force the use of the downloaded font and avoid the use of a local font. The goal is that the web page looks exactly the same for each user.
  • self contained R Markdown documents: since the font is embedded in the document, the use of a local source is needless.

@pvictor pvictor merged commit 8f228bf into dreamRs:master Feb 18, 2020
@pvictor
Copy link
Member

pvictor commented Feb 18, 2020

Nice! Thanks for the explanation :)

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

Successfully merging this pull request may close these issues.

2 participants