Make WordPress Core


Ignore:
Timestamp:
01/18/2019 06:37:26 PM (6 years ago)
Author:
laurelfulford
Message:

Twenty Nineteen: Use a less aggressive approach for non-latin font fallbacks.

The theme's original approach to its non-latin font fallbacks required !important, which overrode fonts that shouldn't have been changed, like the icon fonts used for editor buttons.

Props kjellr, mako09, allancole.
Fixes #45731.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/sass/variables-site/_fonts.scss

    r44149 r44650  
    1717$font__body: "NonBreakingSpaceOverride", "Hoefler Text", "Baskerville Old Face", Garamond, "Times New Roman", serif;
    1818$font__heading: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
     19$font__fallbacks: (
     20    /* Arabic */
     21    ar: 'Tahoma, Arial, sans-serif',
     22    ary: 'Tahoma, Arial, sans-serif',
     23    azb: 'Tahoma, Arial, sans-serif',
     24    ckb: 'Tahoma, Arial, sans-serif',
     25    fa-IR: 'Tahoma, Arial, sans-serif',
     26    haz: 'Tahoma, Arial, sans-serif',
     27    ps: 'Tahoma, Arial, sans-serif',
     28    /* Cyrillic */
     29    be: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     30    bg-BG: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     31    kk: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     32    mk-MK: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     33    mn: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     34    ru-RU: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     35    sah: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     36    sr-RS: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     37    tt-RU: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     38    uk: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif',
     39    /* Chinese (Hong Kong) */
     40    zh-HK: '-apple-system, BlinkMacSystemFont, "PingFang HK", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
     41    /* Chinese (Taiwan) */
     42    zh-TW: '-apple-system, BlinkMacSystemFont, "PingFang TC", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
     43    /* Chinese (China) */
     44    zh-CN: '-apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei New", STHeiti Light, sans-serif',
     45    /* Devanagari */
     46    'bn-BD,hi-IN,mr,ne-NP': 'Arial, sans-serif',
     47    /* Greek */
     48    el: '"Helvetica Neue", Helvetica, Arial, sans-serif',
     49    /* Gujarati */
     50    gu: 'Arial, sans-serif',
     51    /* Hebrew */
     52    he-IL: '"Arial Hebrew", Arial, sans-serif',
     53    /* Japanese */
     54    ja: '-apple-system, BlinkMacSystemFont, "Hiragino Sans", Meiryo, "Helvetica Neue", sans-serif',
     55    /* Korean */
     56    ko-KR: '"Apple SD Gothic Neo", "Malgun Gothic", "Nanum Gothic", Dotum, sans-serif',
     57    /* Thai */
     58    th: '"Sukhumvit Set", "Helvetica Neue", helvetica, arial, sans-serif',
     59    /* Vietnamese */
     60    vi: '"Libre Franklin", sans-serif',
     61);
    1962$font__code: Menlo, monaco, Consolas, Lucida Console, monospace;
    2063$font__pre: "Courier 10 Pitch", Courier, monospace;
Note: See TracChangeset for help on using the changeset viewer.