functions.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. /**
  3. * Twenty Twenty-Two (Swiss) functions and definitions
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/theme-functions/
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty_Two_Swiss
  9. * @since 1.0.0
  10. */
  11. /**
  12. * Get font face styles.
  13. * Called by functions twentytwentytwo_styles() and twentytwentytwo_editor_styles().
  14. *
  15. * @return string
  16. */
  17. function twentytwentytwo_get_font_face_styles() {
  18. return "
  19. /* cyrillic-ext */
  20. @font-face {
  21. font-family: 'Inter';
  22. font-style: normal;
  23. font-weight: 400;
  24. font-display: swap;
  25. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2) format('woff2');
  26. unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  27. }
  28. /* cyrillic */
  29. @font-face {
  30. font-family: 'Inter';
  31. font-style: normal;
  32. font-weight: 400;
  33. font-display: swap;
  34. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2) format('woff2');
  35. unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  36. }
  37. /* greek-ext */
  38. @font-face {
  39. font-family: 'Inter';
  40. font-style: normal;
  41. font-weight: 400;
  42. font-display: swap;
  43. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2) format('woff2');
  44. unicode-range: U+1F00-1FFF;
  45. }
  46. /* greek */
  47. @font-face {
  48. font-family: 'Inter';
  49. font-style: normal;
  50. font-weight: 400;
  51. font-display: swap;
  52. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2) format('woff2');
  53. unicode-range: U+0370-03FF;
  54. }
  55. /* vietnamese */
  56. @font-face {
  57. font-family: 'Inter';
  58. font-style: normal;
  59. font-weight: 400;
  60. font-display: swap;
  61. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2) format('woff2');
  62. unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
  63. }
  64. /* latin-ext */
  65. @font-face {
  66. font-family: 'Inter';
  67. font-style: normal;
  68. font-weight: 400;
  69. font-display: swap;
  70. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2) format('woff2');
  71. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  72. }
  73. /* latin */
  74. @font-face {
  75. font-family: 'Inter';
  76. font-style: normal;
  77. font-weight: 400;
  78. font-display: swap;
  79. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format('woff2');
  80. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  81. }
  82. /* cyrillic-ext */
  83. @font-face {
  84. font-family: 'Inter';
  85. font-style: normal;
  86. font-weight: 700;
  87. font-display: swap;
  88. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7W0Q5n-wU.woff2) format('woff2');
  89. unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  90. }
  91. /* cyrillic */
  92. @font-face {
  93. font-family: 'Inter';
  94. font-style: normal;
  95. font-weight: 700;
  96. font-display: swap;
  97. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7W0Q5n-wU.woff2) format('woff2');
  98. unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  99. }
  100. /* greek-ext */
  101. @font-face {
  102. font-family: 'Inter';
  103. font-style: normal;
  104. font-weight: 700;
  105. font-display: swap;
  106. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7W0Q5n-wU.woff2) format('woff2');
  107. unicode-range: U+1F00-1FFF;
  108. }
  109. /* greek */
  110. @font-face {
  111. font-family: 'Inter';
  112. font-style: normal;
  113. font-weight: 700;
  114. font-display: swap;
  115. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7W0Q5n-wU.woff2) format('woff2');
  116. unicode-range: U+0370-03FF;
  117. }
  118. /* vietnamese */
  119. @font-face {
  120. font-family: 'Inter';
  121. font-style: normal;
  122. font-weight: 700;
  123. font-display: swap;
  124. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7W0Q5n-wU.woff2) format('woff2');
  125. unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
  126. }
  127. /* latin-ext */
  128. @font-face {
  129. font-family: 'Inter';
  130. font-style: normal;
  131. font-weight: 700;
  132. font-display: swap;
  133. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7W0Q5n-wU.woff2) format('woff2');
  134. unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  135. }
  136. /* latin */
  137. @font-face {
  138. font-family: 'Inter';
  139. font-style: normal;
  140. font-weight: 700;
  141. font-display: swap;
  142. src: url(https://fonts.gstatic.com/s/inter/v3/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7W0Q5nw.woff2) format('woff2');
  143. unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  144. }
  145. ";
  146. }