UNPKG

han-css

Version:

The CSS typography framework optimised for Hanzi

38 lines (30 loc) 1.12 kB
$_default-variant = ($han-default-variant == hans ? $han-glyph-set-hans : $han-glyph-set-hant) // ** // * Functions // * han-biaodian($generic = Sans, $set = Pro) if $set is simp "Biaodian " + $generic else "Biaodian Pro " + ($set is Pro ? $generic : $generic + " " + $set) han-typeface($typeface = "Han Heiti", $set = default, $pre = null) $typeface = ($set == default ? $typeface : $typeface + " " + $set) $pre-type = $pre, $typeface ($pre == null or $pre == "" ? $typeface : $pre-type) @import 'extend/sans' @import 'extend/serif' @import 'extend/cursive' @import 'extend/mono' $han-ligature -moz-font-feature-settings: "liga" -ms-font-feature-settings: "liga" -webkit-font-feature-settings: "liga" font-feature-settings: "liga" // We do not need the `locl` property of OpenType typefaces, // for we have better fallback mechanism in Han.css. // (*Internal use with Source Han Sans only) $han-no-locl -moz-font-feature-settings: "liga=1, locl=0" -ms-font-feature-settings: "liga", "locl" 0 -webkit-font-feature-settings: "liga", "locl" 0 font-feature-settings: "liga", "locl" 0