Health-Sprints / A-Machine

A-Machine
GNU General Public License v3.0
1 stars 0 forks source link

Question about `@font-face` usage in "webbuch" stylesheets #5

Open MurakamiShinyu opened 3 years ago

MurakamiShinyu commented 3 years ago

Unfamiliar @font-face syntaxes are used in the "webbuch" stylesheets. What is this -@font-face?, and is valid the font-family list value in @font-face {…}?

e.g., https://github.com/akademie-oeffentliches-gesundheitswesen/krisenmanagment/blob/master/webbuch/styles/print.css

@font-face {
    font-family: -apple-system,BlinkMacSystemFont,"noto sans",helvetica neue,helvetica,roboto,segoe ui,arial,sans-serif;
    font-weight : bold;
    font-style: italic;
    src : url(../fonts/NotoSans-BoldItalic.ttf);
}
-@font-face {
    font-family : -apple-system,BlinkMacSystemFont,"noto sans",helvetica neue,helvetica,roboto,segoe ui,arial,sans-serif;
    font-weight : normal;
    font-style: normal;
    src : url(../fonts/NotoSans-Medium.ttf);
}

Is the - prefix of -@font-face to disable the @font-face rule?

The font-family descriptor in the @font-face rule takes single <family-name> value in the standard spec https://www.w3.org/TR/css-fonts-3/#font-family-desc ). Why is the list value?

mrchristian commented 3 years ago

@rqpe font note for you

mrchristian commented 3 years ago

@rqpe can you check this over and see if it requires a fix from you, or if it is something we should escalate up to Fidus or Vivliostyle to address or fix.

mrchristian commented 3 years ago

Guidance on good font use in Fidus and workflow - are things good as they are for our format output requirements.