functions.php 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <?php
  2. /**
  3. * Twenty Twenty-Two (Red) functions and definitions
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/theme-functions/
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty_Two_Yellow
  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: 'EB Garamond';
  22. font-style: italic;
  23. font-weight: 400;
  24. font-display: swap;
  25. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCiAFKgIIADgB.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: 'EB Garamond';
  31. font-style: italic;
  32. font-weight: 400;
  33. font-display: swap;
  34. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQAyAFKgIIADgB.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: 'EB Garamond';
  40. font-style: italic;
  41. font-weight: 400;
  42. font-display: swap;
  43. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCyAFKgIIADgB.woff2) format('woff2');
  44. unicode-range: U+1F00-1FFF;
  45. }
  46. /* greek */
  47. @font-face {
  48. font-family: 'EB Garamond';
  49. font-style: italic;
  50. font-weight: 400;
  51. font-display: swap;
  52. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQBCAFKgIIADgB.woff2) format('woff2');
  53. unicode-range: U+0370-03FF;
  54. }
  55. /* vietnamese */
  56. @font-face {
  57. font-family: 'EB Garamond';
  58. font-style: italic;
  59. font-weight: 400;
  60. font-display: swap;
  61. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCCAFKgIIADgB.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: 'EB Garamond';
  67. font-style: italic;
  68. font-weight: 400;
  69. font-display: swap;
  70. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCSAFKgIIADgB.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: 'EB Garamond';
  76. font-style: italic;
  77. font-weight: 400;
  78. font-display: swap;
  79. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQByAFKgIIAA==.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: 'EB Garamond';
  85. font-style: italic;
  86. font-weight: 700;
  87. font-display: swap;
  88. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCiAFKgIIADgB.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: 'EB Garamond';
  94. font-style: italic;
  95. font-weight: 700;
  96. font-display: swap;
  97. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQAyAFKgIIADgB.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: 'EB Garamond';
  103. font-style: italic;
  104. font-weight: 700;
  105. font-display: swap;
  106. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCyAFKgIIADgB.woff2) format('woff2');
  107. unicode-range: U+1F00-1FFF;
  108. }
  109. /* greek */
  110. @font-face {
  111. font-family: 'EB Garamond';
  112. font-style: italic;
  113. font-weight: 700;
  114. font-display: swap;
  115. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQBCAFKgIIADgB.woff2) format('woff2');
  116. unicode-range: U+0370-03FF;
  117. }
  118. /* vietnamese */
  119. @font-face {
  120. font-family: 'EB Garamond';
  121. font-style: italic;
  122. font-weight: 700;
  123. font-display: swap;
  124. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCCAFKgIIADgB.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: 'EB Garamond';
  130. font-style: italic;
  131. font-weight: 700;
  132. font-display: swap;
  133. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQCSAFKgIIADgB.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: 'EB Garamond';
  139. font-style: italic;
  140. font-weight: 700;
  141. font-display: swap;
  142. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg8KC0VCIEdhcmFtb25kEAIQByAFKgIIAA==.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. /* cyrillic-ext */
  146. @font-face {
  147. font-family: 'EB Garamond';
  148. font-style: normal;
  149. font-weight: 400;
  150. font-display: swap;
  151. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAogBSoCCAA4AQ==.woff2) format('woff2');
  152. unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  153. }
  154. /* cyrillic */
  155. @font-face {
  156. font-family: 'EB Garamond';
  157. font-style: normal;
  158. font-weight: 400;
  159. font-display: swap;
  160. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAMgBSoCCAA4AQ==.woff2) format('woff2');
  161. unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  162. }
  163. /* greek-ext */
  164. @font-face {
  165. font-family: 'EB Garamond';
  166. font-style: normal;
  167. font-weight: 400;
  168. font-display: swap;
  169. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAsgBSoCCAA4AQ==.woff2) format('woff2');
  170. unicode-range: U+1F00-1FFF;
  171. }
  172. /* greek */
  173. @font-face {
  174. font-family: 'EB Garamond';
  175. font-style: normal;
  176. font-weight: 400;
  177. font-display: swap;
  178. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAQgBSoCCAA4AQ==.woff2) format('woff2');
  179. unicode-range: U+0370-03FF;
  180. }
  181. /* vietnamese */
  182. @font-face {
  183. font-family: 'EB Garamond';
  184. font-style: normal;
  185. font-weight: 400;
  186. font-display: swap;
  187. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAggBSoCCAA4AQ==.woff2) format('woff2');
  188. 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;
  189. }
  190. /* latin-ext */
  191. @font-face {
  192. font-family: 'EB Garamond';
  193. font-style: normal;
  194. font-weight: 400;
  195. font-display: swap;
  196. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAkgBSoCCAA4AQ==.woff2) format('woff2');
  197. 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;
  198. }
  199. /* latin */
  200. @font-face {
  201. font-family: 'EB Garamond';
  202. font-style: normal;
  203. font-weight: 400;
  204. font-display: swap;
  205. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAcgBSoCCAA=.woff2) format('woff2');
  206. 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;
  207. }
  208. /* cyrillic-ext */
  209. @font-face {
  210. font-family: 'EB Garamond';
  211. font-style: normal;
  212. font-weight: 700;
  213. font-display: swap;
  214. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAogBSoCCAA4AQ==.woff2) format('woff2');
  215. unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
  216. }
  217. /* cyrillic */
  218. @font-face {
  219. font-family: 'EB Garamond';
  220. font-style: normal;
  221. font-weight: 700;
  222. font-display: swap;
  223. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAMgBSoCCAA4AQ==.woff2) format('woff2');
  224. unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  225. }
  226. /* greek-ext */
  227. @font-face {
  228. font-family: 'EB Garamond';
  229. font-style: normal;
  230. font-weight: 700;
  231. font-display: swap;
  232. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAsgBSoCCAA4AQ==.woff2) format('woff2');
  233. unicode-range: U+1F00-1FFF;
  234. }
  235. /* greek */
  236. @font-face {
  237. font-family: 'EB Garamond';
  238. font-style: normal;
  239. font-weight: 700;
  240. font-display: swap;
  241. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAQgBSoCCAA4AQ==.woff2) format('woff2');
  242. unicode-range: U+0370-03FF;
  243. }
  244. /* vietnamese */
  245. @font-face {
  246. font-family: 'EB Garamond';
  247. font-style: normal;
  248. font-weight: 700;
  249. font-display: swap;
  250. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAggBSoCCAA4AQ==.woff2) format('woff2');
  251. 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;
  252. }
  253. /* latin-ext */
  254. @font-face {
  255. font-family: 'EB Garamond';
  256. font-style: normal;
  257. font-weight: 700;
  258. font-display: swap;
  259. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAkgBSoCCAA4AQ==.woff2) format('woff2');
  260. 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;
  261. }
  262. /* latin */
  263. @font-face {
  264. font-family: 'EB Garamond';
  265. font-style: normal;
  266. font-weight: 700;
  267. font-display: swap;
  268. src: url(https://fonts.gstatic.com/s/ebgaramond/v19/~Cg0KC0VCIEdhcmFtb25kEAcgBSoCCAA=.woff2) format('woff2');
  269. 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;
  270. }
  271. ";
  272. }