Skip to content

How do I set the correct paths when using local fonts in a website theme? #9516

Answered by mcanouil
chiragraman asked this question in Q&A
Discussion options

You must be logged in to vote

See Klesel/QuartoIssueGoogleFonts#1 for the correction of #4387.

You did not follow Carlos structure. Adding /*-- scss:rules --*/ inside four Fira_Code.css is not a hack you can use.
/*-- scss:rules --*/ is for the SCCS file.

Your SCCS file should look like:

/*-- scss:defaults --*/

$font-family-sans-serif:     "Fira Code", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$font-family-monospace:      "Fira Code", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
$web-font-path:              "No";

/*-- scss:rules --*/
@font-face{
  font-family: 'Fira Code'

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@mcanouil
Comment options

Answer selected by chiragraman
@chiragraman
Comment options

@mcanouil
Comment options

@chiragraman
Comment options

@cscheid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss) themes Related to HTML theming or any other style related issue (like highlight-style)
3 participants