Google Fonts for WordPress - Version 2.5.0

Version Description

Download this release

Release Info

Developer DannyCooper
Plugin Icon 128x128 Google Fonts for WordPress
Version 2.5.0
Comparing to
See all releases

Code changes from version 2.4.0 to 2.5.0

assets/js/customize-controls.js CHANGED
@@ -26,6 +26,13 @@
26
  return false;
27
  }
28
 
 
 
 
 
 
 
 
29
  function isCustomFont( fontID ) {
30
  if ( fontID.indexOf( 'cf-' ) !== -1 ) {
31
  return true;
@@ -42,7 +49,7 @@
42
  control.settings.family.set( value );
43
  const weightsSelect = jQuery( '.typography-font-weight select' );
44
 
45
- if ( value === 'default' || isSystemFont( value ) || isCustomFont( value ) ) {
46
 
47
  const defaultWeights = {
48
  0: "- Default -",
26
  return false;
27
  }
28
 
29
+ function isTypekitFont( fontID ) {
30
+ if ( fontID.indexOf( 'tk-' ) !== -1 ) {
31
+ return true;
32
+ }
33
+ return false;
34
+ }
35
+
36
  function isCustomFont( fontID ) {
37
  if ( fontID.indexOf( 'cf-' ) !== -1 ) {
38
  return true;
49
  control.settings.family.set( value );
50
  const weightsSelect = jQuery( '.typography-font-weight select' );
51
 
52
+ if ( value === 'default' || isSystemFont( value ) || isCustomFont( value ) || isTypekitFont( value ) ) {
53
 
54
  const defaultWeights = {
55
  0: "- Default -",
assets/js/customize-preview.js CHANGED
@@ -24,6 +24,10 @@ jQuery( document ).ready(
24
  const fontID = value.replace( 'cf-', '' );
25
  v.style.setProperty( 'font-family', ogf_custom_fonts[ fontID ].stack, 'important' );
26
  } );
 
 
 
 
27
  } else {
28
  jQuery( selector ).each( function( i, v ) {
29
  v.style.setProperty( 'font-family', '"' + value.split( '-' ).join( ' ' ) + '"', 'important' );
@@ -45,6 +49,13 @@ jQuery( document ).ready(
45
  return false;
46
  }
47
 
 
 
 
 
 
 
 
48
  // Loop through the elements and bind the controls.
49
  jQuery.map( ogf_elements, function( val, id ) {
50
  wp.customize(
24
  const fontID = value.replace( 'cf-', '' );
25
  v.style.setProperty( 'font-family', ogf_custom_fonts[ fontID ].stack, 'important' );
26
  } );
27
+ } else if ( isTypekitFont( value ) ) {
28
+ jQuery( selector ).each( function( i, v ) {
29
+ v.style.setProperty( 'font-family', ogf_typekit_fonts[ value ].stack, 'important' );
30
+ } );
31
  } else {
32
  jQuery( selector ).each( function( i, v ) {
33
  v.style.setProperty( 'font-family', '"' + value.split( '-' ).join( ' ' ) + '"', 'important' );
49
  return false;
50
  }
51
 
52
+ function isTypekitFont( fontID ) {
53
+ if ( fontID.indexOf( 'tk-' ) !== -1 ) {
54
+ return true;
55
+ }
56
+ return false;
57
+ }
58
+
59
  // Loop through the elements and bind the controls.
60
  jQuery.map( ogf_elements, function( val, id ) {
61
  wp.customize(
blocks/dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- !function(i){function a(e){if(t[e])return t[e].exports;var l=t[e]={i:e,l:!1,exports:{}};return i[e].call(l.exports,l,l.exports,a),l.l=!0,l.exports}var t={};a.m=i,a.c=t,a.d=function(i,t,e){a.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:e})},a.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(t,"a",t),t},a.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},a.p="",a(a.s=0)}([function(i,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});t(1)},function(i,a,t){"use strict";var e=t(2),l=t(5),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("olympus-google-fonts/google-fonts",{title:__("Google Fonts","olympus-google-fonts"),category:"common",icon:wp.element.createElement("svg",{baseProfile:"tiny",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"})),keywords:[__("Fonts","olympus-google-fonts"),__("Heading","olympus-google-fonts")],transforms:l.a,edit:e.a,save:function(){return null}})},function(i,a,t){"use strict";function e(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function l(i,a){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?i:a}function f(i,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(i,a):i.__proto__=a)}var v=t(3),n=t.n(v),o=t(4),c=t.n(o),r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"===typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s=function(){function i(i,a){for(var t=0;t<a.length;t++){var e=a[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(a,t,e){return t&&i(a.prototype,t),e&&i(a,e),a}}(),__=wp.i18n.__,u=wp.element,d=u.Component,m=u.Fragment,S=wp.components,h=S.SelectControl,p=S.RangeControl,g=S.PanelBody,b=wp.blockEditor,y=b.RichText,C=b.InspectorControls,k=b.BlockControls,M=b.AlignmentToolbar,O=b.PanelColorSettings,w=function(i){function a(){return e(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return f(a,i),s(a,[{key:"componentDidUpdate",value:function(i){this.props.attributes.fontID!==i.attributes.fontID&&(this.props.attributes.v="0")}},{key:"getFontsForSelect",value:function(){var i=Object.values(ogf_custom_fonts).map(function(i){return{value:i.id,label:i.label}});i.unshift({value:"1",label:__("- Custom Fonts -","olympus-google-fonts"),disabled:!0});var a=c.a.items.map(function(i){var a=i.label;return{value:i.id,label:a}});a.unshift({value:"1",label:__("- System Fonts -","olympus-google-fonts"),disabled:!0});var t=i.concat(a),e=n.a.items.map(function(i){var a=i.f;return{value:a.replace(/\s+/g,"+"),label:a}});return e.unshift({value:"1",label:__("- Google Fonts -","olympus-google-fonts"),disabled:!0}),t.concat(e)}},{key:"searchFonts",value:function(i,a){for(var t=0;t<a.length;t++)if(a[t].id===i)return a[t]}},{key:"isCustomFont",value:function(i){var a=this.searchFonts(i,Object.values(ogf_custom_fonts));return"object"===("undefined"===typeof a?"undefined":r(a))}},{key:"isSystemFont",value:function(i){var a=this.searchFonts(i,c.a.items);return"object"===("undefined"===typeof a?"undefined":r(a))}},{key:"isItalic",value:function(i){return!i.includes("0i")}},{key:"getVariantsForSelect",value:function(i){if(i){var a={0:__("- Default -","olympus-google-fonts"),100:__("Thin","olympus-google-fonts"),200:__("Extra Light","olympus-google-fonts"),300:__("Light","olympus-google-fonts"),400:__("Normal","olympus-google-fonts"),500:__("Medium","olympus-google-fonts"),600:__("Semi Bold","olympus-google-fonts"),700:__("Bold","olympus-google-fonts"),800:__("Extra Bold","olympus-google-fonts"),900:__("Ultra Bold","olympus-google-fonts")};return-1===i.v.indexOf("0")&&i.v.unshift("0"),i.v.filter(this.isItalic).map(function(i){return{value:i,label:a[i]}})}}},{key:"getFontObject",value:function(i){if(i)for(var a=0;a<n.a.items.length;a++)if(n.a.items[a].f===i)return n.a.items[a]}},{key:"addGoogleFontToHead",value:function(i,a){if(i&&a){var t=document.head,e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href="https://fonts.googleapis.com/css?family="+i.replace(/\s+/g,"+")+":"+a.v.join(","),t.appendChild(e)}}},{key:"render",value:function(){var i=this.props,a=i.attributes,t=i.setAttributes,e=a.fontID,l=a.content,f=a.align,v=a.variant,n=a.fontSize,o=a.lineHeight,c=a.color,r=a.blockType,s=this.getFontsForSelect();s.unshift({label:"- Default -",value:"0"});var u=[{value:"0",label:"- Default -"},{value:"400",label:"Regular"},{value:"700",label:"Bold"}];if(!this.isSystemFont(e)&&!this.isCustomFont(e)){var d=this.getFontObject(e.replace(/\+/g," "));u=this.getVariantsForSelect(d),this.addGoogleFontToHead(e,d)}var S=wp.element.createElement(C,null,wp.element.createElement(g,{title:__("Font Settings","olympus-google-fonts")},wp.element.createElement(h,{label:__("Block Type","olympus-google-fonts"),type:"string",value:r,options:[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"Span",value:"span"}],onChange:function(i){return t({blockType:i})}}),wp.element.createElement(h,{label:__("Font","olympus-google-fonts"),type:"string",value:e,options:s,onChange:function(i){return t({fontID:i})}}),wp.element.createElement(h,{label:__("Font Variant","olympus-google-fonts"),type:"string",value:v,options:u,onChange:function(i){return t({variant:i})}}),wp.element.createElement(p,{label:__("Font Size","olympus-google-fonts"),value:n,onChange:function(i){return t({fontSize:i})},allowReset:!0,min:"10",max:"150"}),wp.element.createElement(p,{label:__("Line Height","olympus-google-fonts"),value:o,onChange:function(i){return t({lineHeight:i})},allowReset:!0,min:"1",max:"3",step:"0.1"}),wp.element.createElement(O,{title:__("Color Settings","olympus-google-fonts"),colorSettings:[{value:a.color,onChange:function(i){return t({color:i})},label:__("Text Color","olympus-google-fonts")}]})));return wp.element.createElement(m,null,S,wp.element.createElement(k,null,wp.element.createElement(M,{value:f,onChange:function(i){return t({align:i})}})),wp.element.createElement(y,{tagName:r||"p",value:l,onChange:function(i){return t({content:i})},style:{fontSize:n?n+"px":void 0,textAlign:f,fontFamily:e.replace(/\+/g," "),fontWeight:v,lineHeight:o,color:c},placeholder:__("Add some content...","olympus-google-fonts")}))}}]),a}(d);a.a=w},function(i,a){i.exports={kind:"webfonts#webfontList",items:[{f:"ABeeZee",v:["400","400i"]},{f:"Abel",v:["400"]},{f:"Abhaya Libre",v:["400","500","600","700","800"]},{f:"Abril Fatface",v:["400"]},{f:"Aclonica",v:["400"]},{f:"Acme",v:["400"]},{f:"Actor",v:["400"]},{f:"Adamina",v:["400"]},{f:"Advent Pro",v:["100","200","300","400","500","600","700"]},{f:"Aguafina Script",v:["400"]},{f:"Akronim",v:["400"]},{f:"Aladin",v:["400"]},{f:"Alata",v:["400"]},{f:"Alatsi",v:["400"]},{f:"Aldrich",v:["400"]},{f:"Alef",v:["400","700"]},{f:"Alegreya",v:["400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya SC",v:["400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya Sans",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya Sans SC",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Aleo",v:["300","300italic","400","400i","700","700italic"]},{f:"Alex Brush",v:["400"]},{f:"Alfa Slab One",v:["400"]},{f:"Alice",v:["400"]},{f:"Alike",v:["400"]},{f:"Alike Angular",v:["400"]},{f:"Allan",v:["400","700"]},{f:"Allerta",v:["400"]},{f:"Allerta Stencil",v:["400"]},{f:"Allura",v:["400"]},{f:"Almarai",v:["300","400","700","800"]},{f:"Almendra",v:["400","400i","700","700italic"]},{f:"Almendra Display",v:["400"]},{f:"Almendra SC",v:["400"]},{f:"Amarante",v:["400"]},{f:"Amaranth",v:["400","400i","700","700italic"]},{f:"Amatic SC",v:["400","700"]},{f:"Amethysta",v:["400"]},{f:"Amiko",v:["400","600","700"]},{f:"Amiri",v:["400","400i","700","700italic"]},{f:"Amita",v:["400","700"]},{f:"Anaheim",v:["400"]},{f:"Andada",v:["400"]},{f:"Andika",v:["400"]},{f:"Angkor",v:["400"]},{f:"Annie Use Your Telescope",v:["400"]},{f:"Anonymous Pro",v:["400","400i","700","700italic"]},{f:"Antic",v:["400"]},{f:"Antic Didone",v:["400"]},{f:"Antic Slab",v:["400"]},{f:"Anton",v:["400"]},{f:"Arapey",v:["400","400i"]},{f:"Arbutus",v:["400"]},{f:"Arbutus Slab",v:["400"]},{f:"Architects Daughter",v:["400"]},{f:"Archivo",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Archivo Black",v:["400"]},{f:"Archivo Narrow",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Aref Ruqaa",v:["400","700"]},{f:"Arima Madurai",v:["100","200","300","400","500","700","800","900"]},{f:"Arimo",v:["400","400i","700","700italic"]},{f:"Arizonia",v:["400"]},{f:"Armata",v:["400"]},{f:"Arsenal",v:["400","400i","700","700italic"]},{f:"Artifika",v:["400"]},{f:"Arvo",v:["400","400i","700","700italic"]},{f:"Arya",v:["400","700"]},{f:"Asap",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Asap Condensed",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Asar",v:["400"]},{f:"Asset",v:["400"]},{f:"Assistant",v:["200","300","400","600","700","800"]},{f:"Astloch",v:["400","700"]},{f:"Asul",v:["400","700"]},{f:"Athiti",v:["200","300","400","500","600","700"]},{f:"Atma",v:["300","400","500","600","700"]},{f:"Atomic Age",v:["400"]},{f:"Aubrey",v:["400"]},{f:"Audiowide",v:["400"]},{f:"Autour One",v:["400"]},{f:"Average",v:["400"]},{f:"Average Sans",v:["400"]},{f:"Averia Gruesa Libre",v:["400"]},{f:"Averia Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"Averia Sans Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"Averia Serif Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"B612",v:["400","400i","700","700italic"]},{f:"B612 Mono",v:["400","400i","700","700italic"]},{f:"Bad Script",v:["400"]},{f:"Bahiana",v:["400"]},{f:"Bahianita",v:["400"]},{f:"Bai Jamjuree",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Baloo 2",v:["400","500","600","700","800"]},{f:"Baloo Bhai 2",v:["400","500","600","700","800"]},{f:"Baloo Bhaina 2",v:["400","500","600","700","800"]},{f:"Baloo Chettan 2",v:["400","500","600","700","800"]},{f:"Baloo Da 2",v:["400","500","600","700","800"]},{f:"Baloo Paaji 2",v:["400","500","600","700","800"]},{f:"Baloo Tamma 2",v:["400","500","600","700","800"]},{f:"Baloo Tammudu 2",v:["400","500","600","700","800"]},{f:"Baloo Thambi 2",v:["400","500","600","700","800"]},{f:"Balsamiq Sans",v:["400","400i","700","700italic"]},{f:"Balthazar",v:["400"]},{f:"Bangers",v:["400"]},{f:"Barlow",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barlow Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barlow Semi Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barriecito",v:["400"]},{f:"Barrio",v:["400"]},{f:"Basic",v:["400"]},{f:"Baskervville",v:["400","400i"]},{f:"Battambang",v:["400","700"]},{f:"Baumans",v:["400"]},{f:"Bayon",v:["400"]},{f:"Be Vietnam",v:["100","100italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Bebas Neue",v:["400"]},{f:"Belgrano",v:["400"]},{f:"Bellefair",v:["400"]},{f:"Belleza",v:["400"]},{f:"Bellota",v:["300","300italic","400","400i","700","700italic"]},{f:"Bellota Text",v:["300","300italic","400","400i","700","700italic"]},{f:"BenchNine",v:["300","400","700"]},{f:"Bentham",v:["400"]},{f:"Berkshire Swash",v:["400"]},{f:"Beth Ellen",v:["400"]},{f:"Bevan",v:["400"]},{f:"Big Shoulders Display",v:["100","300","400","500","600","700","800","900"]},{f:"Big Shoulders Text",v:["100","300","400","500","600","700","800","900"]},{f:"Bigelow Rules",v:["400"]},{f:"Bigshot One",v:["400"]},{f:"Bilbo",v:["400"]},{f:"Bilbo Swash Caps",v:["400"]},{f:"BioRhyme",v:["200","300","400","700","800"]},{f:"BioRhyme Expanded",v:["200","300","400","700","800"]},{f:"Biryani",v:["200","300","400","600","700","800","900"]},{f:"Bitter",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Black And White Picture",v:["400"]},{f:"Black Han Sans",v:["400"]},{f:"Black Ops One",v:["400"]},{f:"Blinker",v:["100","200","300","400","600","700","800","900"]},{f:"Bokor",v:["400"]},{f:"Bonbon",v:["400"]},{f:"Boogaloo",v:["400"]},{f:"Bowlby One",v:["400"]},{f:"Bowlby One SC",v:["400"]},{f:"Brawler",v:["400"]},{f:"Bree Serif",v:["400"]},{f:"Bubblegum Sans",v:["400"]},{f:"Bubbler One",v:["400"]},{f:"Buda",v:["300"]},{f:"Buenard",v:["400","700"]},{f:"Bungee",v:["400"]},{f:"Bungee Hairline",v:["400"]},{f:"Bungee Inline",v:["400"]},{f:"Bungee Outline",v:["400"]},{f:"Bungee Shade",v:["400"]},{f:"Butcherman",v:["400"]},{f:"Butterfly Kids",v:["400"]},{f:"Cabin",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Cabin Condensed",v:["400","500","600","700"]},{f:"Cabin Sketch",v:["400","700"]},{f:"Caesar Dressing",v:["400"]},{f:"Cagliostro",v:["400"]},{f:"Cairo",v:["200","300","400","600","700","900"]},{f:"Caladea",v:["400","400i","700","700italic"]},{f:"Calistoga",v:["400"]},{f:"Calligraffitti",v:["400"]},{f:"Cambay",v:["400","400i","700","700italic"]},{f:"Cambo",v:["400"]},{f:"Candal",v:["400"]},{f:"Cantarell",v:["400","400i","700","700italic"]},{f:"Cantata One",v:["400"]},{f:"Cantora One",v:["400"]},{f:"Capriola",v:["400"]},{f:"Cardo",v:["400","400i","700"]},{f:"Carme",v:["400"]},{f:"Carrois Gothic",v:["400"]},{f:"Carrois Gothic SC",v:["400"]},{f:"Carter One",v:["400"]},{f:"Catamaran",v:["100","200","300","400","500","600","700","800","900"]},{f:"Caudex",v:["400","400i","700","700italic"]},{f:"Caveat",v:["400","700"]},{f:"Caveat Brush",v:["400"]},{f:"Cedarville Cursive",v:["400"]},{f:"Ceviche One",v:["400"]},{f:"Chakra Petch",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Changa",v:["200","300","400","500","600","700","800"]},{f:"Changa One",v:["400","400i"]},{f:"Chango",v:["400"]},{f:"Charm",v:["400","700"]},{f:"Charmonman",v:["400","700"]},{f:"Chathura",v:["100","300","400","700","800"]},{f:"Chau Philomene One",v:["400","400i"]},{f:"Chela One",v:["400"]},{f:"Chelsea Market",v:["400"]},{f:"Chenla",v:["400"]},{f:"Cherry Cream Soda",v:["400"]},{f:"Cherry Swash",v:["400","700"]},{f:"Chewy",v:["400"]},{f:"Chicle",v:["400"]},{f:"Chilanka",v:["400"]},{f:"Chivo",v:["300","300italic","400","400i","700","700italic","900","900italic"]},{f:"Chonburi",v:["400"]},{f:"Cinzel",v:["400","500","600","700","800","900"]},{f:"Cinzel Decorative",v:["400","700","900"]},{f:"Clicker Script",v:["400"]},{f:"Coda",v:["400","800"]},{f:"Coda Caption",v:["800"]},{f:"Codystar",v:["300","400"]},{f:"Coiny",v:["400"]},{f:"Combo",v:["400"]},{f:"Comfortaa",v:["300","400","500","600","700"]},{f:"Comic Neue",v:["300","300italic","400","400i","700","700italic"]},{f:"Coming Soon",v:["400"]},{f:"Concert One",v:["400"]},{f:"Condiment",v:["400"]},{f:"Content",v:["400","700"]},{f:"Contrail One",v:["400"]},{f:"Convergence",v:["400"]},{f:"Cookie",v:["400"]},{f:"Copse",v:["400"]},{f:"Corben",v:["400","700"]},{f:"Cormorant",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant Garamond",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant Infant",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant SC",v:["300","400","500","600","700"]},{f:"Cormorant Unicase",v:["300","400","500","600","700"]},{f:"Cormorant Upright",v:["300","400","500","600","700"]},{f:"Courgette",v:["400"]},{f:"Courier Prime",v:["400","400i","700","700italic"]},{f:"Cousine",v:["400","400i","700","700italic"]},{f:"Coustard",v:["400","900"]},{f:"Covered By Your Grace",v:["400"]},{f:"Crafty Girls",v:["400"]},{f:"Creepster",v:["400"]},{f:"Crete Round",v:["400","400i"]},{f:"Crimson Pro",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Crimson Text",v:["400","400i","600","600italic","700","700italic"]},{f:"Croissant One",v:["400"]},{f:"Crushed",v:["400"]},{f:"Cuprum",v:["400","400i","700","700italic"]},{f:"Cute Font",v:["400"]},{f:"Cutive",v:["400"]},{f:"Cutive Mono",v:["400"]},{f:"DM Mono",v:["300","300italic","400","400i","500","500italic"]},{f:"DM Sans",v:["400","400i","500","500italic","700","700italic"]},{f:"DM Serif Display",v:["400","400i"]},{f:"DM Serif Text",v:["400","400i"]},{f:"Damion",v:["400"]},{f:"Dancing Script",v:["400","500","600","700"]},{f:"Dangrek",v:["400"]},{f:"Darker Grotesque",v:["300","400","500","600","700","800","900"]},{f:"David Libre",v:["400","500","700"]},{f:"Dawning of a New Day",v:["400"]},{f:"Days One",v:["400"]},{f:"Dekko",v:["400"]},{f:"Delius",v:["400"]},{f:"Delius Swash Caps",v:["400"]},{f:"Delius Unicase",v:["400","700"]},{f:"Della Respira",v:["400"]},{f:"Denk One",v:["400"]},{f:"Devonshire",v:["400"]},{f:"Dhurjati",v:["400"]},{f:"Didact Gothic",v:["400"]},{f:"Diplomata",v:["400"]},{f:"Diplomata SC",v:["400"]},{f:"Do Hyeon",v:["400"]},{f:"Dokdo",v:["400"]},{f:"Domine",v:["400","700"]},{f:"Donegal One",v:["400"]},{f:"Doppio One",v:["400"]},{f:"Dorsa",v:["400"]},{f:"Dosis",v:["200","300","400","500","600","700","800"]},{f:"Dr Sugiyama",v:["400"]},{f:"Duru Sans",v:["400"]},{f:"Dynalight",v:["400"]},{f:"EB Garamond",v:["400","500","600","700","800","400i","500italic","600italic","700italic","800italic"]},{f:"Eagle Lake",v:["400"]},{f:"East Sea Dokdo",v:["400"]},{f:"Eater",v:["400"]},{f:"Economica",v:["400","400i","700","700italic"]},{f:"Eczar",v:["400","500","600","700","800"]},{f:"El Messiri",v:["400","500","600","700"]},{f:"Electrolize",v:["400"]},{f:"Elsie",v:["400","900"]},{f:"Elsie Swash Caps",v:["400","900"]},{f:"Emblema One",v:["400"]},{f:"Emilys Candy",v:["400"]},{f:"Encode Sans",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Expanded",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Semi Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Semi Expanded",v:["100","200","300","400","500","600","700","800","900"]},{f:"Engagement",v:["400"]},{f:"Englebert",v:["400"]},{f:"Enriqueta",v:["400","500","600","700"]},{f:"Epilogue",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Erica One",v:["400"]},{f:"Esteban",v:["400"]},{f:"Euphoria Script",v:["400"]},{f:"Ewert",v:["400"]},{f:"Exo",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Exo 2",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Expletus Sans",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Fahkwang",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Fanwood Text",v:["400","400i"]},{f:"Farro",v:["300","400","500","700"]},{f:"Farsan",v:["400"]},{f:"Fascinate",v:["400"]},{f:"Fascinate Inline",v:["400"]},{f:"Faster One",v:["400"]},{f:"Fasthand",v:["400"]},{f:"Fauna One",v:["400"]},{f:"Faustina",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Federant",v:["400"]},{f:"Federo",v:["400"]},{f:"Felipa",v:["400"]},{f:"Fenix",v:["400"]},{f:"Finger Paint",v:["400"]},{f:"Fira Code",v:["300","400","500","600","700"]},{f:"Fira Mono",v:["400","500","700"]},{f:"Fira Sans",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fira Sans Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fira Sans Extra Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fjalla One",v:["400"]},{f:"Fjord One",v:["400"]},{f:"Flamenco",v:["300","400"]},{f:"Flavors",v:["400"]},{f:"Fondamento",v:["400","400i"]},{f:"Fontdiner Swanky",v:["400"]},{f:"Forum",v:["400"]},{f:"Francois One",v:["400"]},{f:"Frank Ruhl Libre",v:["300","400","500","700","900"]},{f:"Freckle Face",v:["400"]},{f:"Fredericka the Great",v:["400"]},{f:"Fredoka One",v:["400"]},{f:"Freehand",v:["400"]},{f:"Fresca",v:["400"]},{f:"Frijole",v:["400"]},{f:"Fruktur",v:["400"]},{f:"Fugaz One",v:["400"]},{f:"GFS Didot",v:["400"]},{f:"GFS Neohellenic",v:["400","400i","700","700italic"]},{f:"Gabriela",v:["400"]},{f:"Gaegu",v:["300","400","700"]},{f:"Gafata",v:["400"]},{f:"Galada",v:["400"]},{f:"Galdeano",v:["400"]},{f:"Galindo",v:["400"]},{f:"Gamja Flower",v:["400"]},{f:"Gayathri",v:["100","400","700"]},{f:"Gelasio",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Gentium Basic",v:["400","400i","700","700italic"]},{f:"Gentium Book Basic",v:["400","400i","700","700italic"]},{f:"Geo",v:["400","400i"]},{f:"Geostar",v:["400"]},{f:"Geostar Fill",v:["400"]},{f:"Germania One",v:["400"]},{f:"Gidugu",v:["400"]},{f:"Gilda Display",v:["400"]},{f:"Girassol",v:["400"]},{f:"Give You Glory",v:["400"]},{f:"Glass Antiqua",v:["400"]},{f:"Glegoo",v:["400","700"]},{f:"Gloria Hallelujah",v:["400"]},{f:"Goblin One",v:["400"]},{f:"Gochi Hand",v:["400"]},{f:"Gorditas",v:["400","700"]},{f:"Gothic A1",v:["100","200","300","400","500","600","700","800","900"]},{f:"Gotu",v:["400"]},{f:"Goudy Bookletter 1911",v:["400"]},{f:"Graduate",v:["400"]},{f:"Grand Hotel",v:["400"]},{f:"Grandstander",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Gravitas One",v:["400"]},{f:"Great Vibes",v:["400"]},{f:"Grenze",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Grenze Gotisch",v:["100","200","300","400","500","600","700","800","900"]},{f:"Griffy",v:["400"]},{f:"Gruppo",v:["400"]},{f:"Gudea",v:["400","400i","700"]},{f:"Gugi",v:["400"]},{f:"Gupter",v:["400","500","700"]},{f:"Gurajada",v:["400"]},{f:"Habibi",v:["400"]},{f:"Halant",v:["300","400","500","600","700"]},{f:"Hammersmith One",v:["400"]},{f:"Hanalei",v:["400"]},{f:"Hanalei Fill",v:["400"]},{f:"Handlee",v:["400"]},{f:"Hanuman",v:["400","700"]},{f:"Happy Monkey",v:["400"]},{f:"Harmattan",v:["400","700"]},{f:"Headland One",v:["400"]},{f:"Heebo",v:["100","200","300","400","500","600","700","800","900"]},{f:"Henny Penny",v:["400"]},{f:"Hepta Slab",v:["100","200","300","400","500","600","700","800","900"]},{f:"Herr Von Muellerhoff",v:["400"]},{f:"Hi Melody",v:["400"]},{f:"Hind",v:["300","400","500","600","700"]},{f:"Hind Guntur",v:["300","400","500","600","700"]},{f:"Hind Madurai",v:["300","400","500","600","700"]},{f:"Hind Siliguri",v:["300","400","500","600","700"]},{f:"Hind Vadodara",v:["300","400","500","600","700"]},{f:"Holtwood One SC",v:["400"]},{f:"Homemade Apple",v:["400"]},{f:"Homenaje",v:["400"]},{f:"IBM Plex Mono",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Sans",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Sans Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Serif",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IM Fell DW Pica",v:["400","400i"]},{f:"IM Fell DW Pica SC",v:["400"]},{f:"IM Fell Double Pica",v:["400","400i"]},{f:"IM Fell Double Pica SC",v:["400"]},{f:"IM Fell English",v:["400","400i"]},{f:"IM Fell English SC",v:["400"]},{f:"IM Fell French Canon",v:["400","400i"]},{f:"IM Fell French Canon SC",v:["400"]},{f:"IM Fell Great Primer",v:["400","400i"]},{f:"IM Fell Great Primer SC",v:["400"]},{f:"Ibarra Real Nova",v:["400","400i","600","600italic","700","700italic"]},{f:"Iceberg",v:["400"]},{f:"Iceland",v:["400"]},{f:"Imprima",v:["400"]},{f:"Inconsolata",v:["200","300","400","500","600","700","800","900"]},{f:"Inder",v:["400"]},{f:"Indie Flower",v:["400"]},{f:"Inika",v:["400","700"]},{f:"Inknut Antiqua",v:["300","400","500","600","700","800","900"]},{f:"Inria Sans",v:["300","300italic","400","400i","700","700italic"]},{f:"Inria Serif",v:["300","300italic","400","400i","700","700italic"]},{f:"Inter",v:["100","200","300","400","500","600","700","800","900"]},{f:"Irish Grover",v:["400"]},{f:"Istok Web",v:["400","400i","700","700italic"]},{f:"Italiana",v:["400"]},{f:"Italianno",v:["400"]},{f:"Itim",v:["400"]},{f:"Jacques Francois",v:["400"]},{f:"Jacques Francois Shadow",v:["400"]},{f:"Jaldi",v:["400","700"]},{f:"Jim Nightshade",v:["400"]},{f:"Jockey One",v:["400"]},{f:"Jolly Lodger",v:["400"]},{f:"Jomhuria",v:["400"]},{f:"Jomolhari",v:["400"]},{f:"Josefin Sans",v:["100","200","300","400","500","600","700","100italic","200italic","300italic","400i","500italic","600italic","700italic"]},{f:"Josefin Slab",v:["100","100italic","300","300italic","400","400i","600","600italic","700","700italic"]},{f:"Jost",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Joti One",v:["400"]},{f:"Jua",v:["400"]},{f:"Judson",v:["400","400i","700"]},{f:"Julee",v:["400"]},{f:"Julius Sans One",v:["400"]},{f:"Junge",v:["400"]},{f:"Jura",v:["300","400","500","600","700"]},{f:"Just Another Hand",v:["400"]},{f:"Just Me Again Down Here",v:["400"]},{f:"K2D",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Kadwa",v:["400","700"]},{f:"Kalam",v:["300","400","700"]},{f:"Kameron",v:["400","700"]},{f:"Kanit",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Kantumruy",v:["300","400","700"]},{f:"Karla",v:["400","400i","700","700italic"]},{f:"Karma",v:["300","400","500","600","700"]},{f:"Katibeh",v:["400"]},{f:"Kaushan Script",v:["400"]},{f:"Kavivanar",v:["400"]},{f:"Kavoon",v:["400"]},{f:"Kdam Thmor",v:["400"]},{f:"Keania One",v:["400"]},{f:"Kelly Slab",v:["400"]},{f:"Kenia",v:["400"]},{f:"Khand",v:["300","400","500","600","700"]},{f:"Khmer",v:["400"]},{f:"Khula",v:["300","400","600","700","800"]},{f:"Kirang Haerang",v:["400"]},{f:"Kite One",v:["400"]},{f:"Knewave",v:["400"]},{f:"KoHo",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kodchasan",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kosugi",v:["400"]},{f:"Kosugi Maru",v:["400"]},{f:"Kotta One",v:["400"]},{f:"Koulen",v:["400"]},{f:"Kranky",v:["400"]},{f:"Kreon",v:["300","400","500","600","700"]},{f:"Kristi",v:["400"]},{f:"Krona One",v:["400"]},{f:"Krub",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kufam",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Kulim Park",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic"]},{f:"Kumar One",v:["400"]},{f:"Kumar One Outline",v:["400"]},{f:"Kumbh Sans",v:["300","400","700"]},{f:"Kurale",v:["400"]},{f:"La Belle Aurore",v:["400"]},{f:"Lacquer",v:["400"]},{f:"Laila",v:["300","400","500","600","700"]},{f:"Lakki Reddy",v:["400"]},{f:"Lalezar",v:["400"]},{f:"Lancelot",v:["400"]},{f:"Lateef",v:["400"]},{f:"Lato",v:["100","100italic","300","300italic","400","400i","700","700italic","900","900italic"]},{f:"League Script",v:["400"]},{f:"Leckerli One",v:["400"]},{f:"Ledger",v:["400"]},{f:"Lekton",v:["400","400i","700"]},{f:"Lemon",v:["400"]},{f:"Lemonada",v:["300","400","500","600","700"]},{f:"Lexend Deca",v:["400"]},{f:"Lexend Exa",v:["400"]},{f:"Lexend Giga",v:["400"]},{f:"Lexend Mega",v:["400"]},{f:"Lexend Peta",v:["400"]},{f:"Lexend Tera",v:["400"]},{f:"Lexend Zetta",v:["400"]},{f:"Libre Barcode 128",v:["400"]},{f:"Libre Barcode 128 Text",v:["400"]},{f:"Libre Barcode 39",v:["400"]},{f:"Libre Barcode 39 Extended",v:["400"]},{f:"Libre Barcode 39 Extended Text",v:["400"]},{f:"Libre Barcode 39 Text",v:["400"]},{f:"Libre Baskerville",v:["400","400i","700"]},{f:"Libre Caslon Display",v:["400"]},{f:"Libre Caslon Text",v:["400","400i","700"]},{f:"Libre Franklin",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Life Savers",v:["400","700","800"]},{f:"Lilita One",v:["400"]},{f:"Lily Script One",v:["400"]},{f:"Limelight",v:["400"]},{f:"Linden Hill",v:["400","400i"]},{f:"Literata",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Liu Jian Mao Cao",v:["400"]},{f:"Livvic",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","900","900italic"]},{f:"Lobster",v:["400"]},{f:"Lobster Two",v:["400","400i","700","700italic"]},{f:"Londrina Outline",v:["400"]},{f:"Londrina Shadow",v:["400"]},{f:"Londrina Sketch",v:["400"]},{f:"Londrina Solid",v:["100","300","400","900"]},{f:"Long Cang",v:["400"]},{f:"Lora",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Love Ya Like A Sister",v:["400"]},{f:"Loved by the King",v:["400"]},{f:"Lovers Quarrel",v:["400"]},{f:"Luckiest Guy",v:["400"]},{f:"Lusitana",v:["400","700"]},{f:"Lustria",v:["400"]},{f:"M PLUS 1p",v:["100","300","400","500","700","800","900"]},{f:"M PLUS Rounded 1c",v:["100","300","400","500","700","800","900"]},{f:"Ma Shan Zheng",v:["400"]},{f:"Macondo",v:["400"]},{f:"Macondo Swash Caps",v:["400"]},{f:"Mada",v:["200","300","400","500","600","700","900"]},{f:"Magra",v:["400","700"]},{f:"Maiden Orange",v:["400"]},{f:"Maitree",v:["200","300","400","500","600","700"]},{f:"Major Mono Display",v:["400"]},{f:"Mako",v:["400"]},{f:"Mali",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Mallanna",v:["400"]},{f:"Mandali",v:["400"]},{f:"Manjari",v:["100","400","700"]},{f:"Manrope",v:["200","300","400","500","600","700","800"]},{f:"Mansalva",v:["400"]},{f:"Manuale",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Marcellus",v:["400"]},{f:"Marcellus SC",v:["400"]},{f:"Marck Script",v:["400"]},{f:"Margarine",v:["400"]},{f:"Markazi Text",v:["400","500","600","700"]},{f:"Marko One",v:["400"]},{f:"Marmelad",v:["400"]},{f:"Martel",v:["200","300","400","600","700","800","900"]},{f:"Martel Sans",v:["200","300","400","600","700","800","900"]},{f:"Marvel",v:["400","400i","700","700italic"]},{f:"Mate",v:["400","400i"]},{f:"Mate SC",v:["400"]},{f:"Maven Pro",v:["400","500","600","700","800","900"]},{f:"McLaren",v:["400"]},{f:"Meddon",v:["400"]},{f:"MedievalSharp",v:["400"]},{f:"Medula One",v:["400"]},{f:"Meera Inimai",v:["400"]},{f:"Megrim",v:["400"]},{f:"Meie Script",v:["400"]},{f:"Merienda",v:["400","700"]},{f:"Merienda One",v:["400"]},{f:"Merriweather",v:["300","300italic","400","400i","700","700italic","900","900italic"]},{f:"Merriweather Sans",v:["300","400","500","600","700","800","300italic","400i","500italic","600italic","700italic","800italic"]},{f:"Metal",v:["400"]},{f:"Metal Mania",v:["400"]},{f:"Metamorphous",v:["400"]},{f:"Metrophobic",v:["400"]},{f:"Michroma",v:["400"]},{f:"Milonga",v:["400"]},{f:"Miltonian",v:["400"]},{f:"Miltonian Tattoo",v:["400"]},{f:"Mina",v:["400","700"]},{f:"Miniver",v:["400"]},{f:"Miriam Libre",v:["400","700"]},{f:"Mirza",v:["400","500","600","700"]},{f:"Miss Fajardose",v:["400"]},{f:"Mitr",v:["200","300","400","500","600","700"]},{f:"Modak",v:["400"]},{f:"Modern Antiqua",v:["400"]},{f:"Mogra",v:["400"]},{f:"Molengo",v:["400"]},{f:"Molle",v:["400i"]},{f:"Monda",v:["400","700"]},{f:"Monofett",v:["400"]},{f:"Monoton",v:["400"]},{f:"Monsieur La Doulaise",v:["400"]},{f:"Montaga",v:["400"]},{f:"Montez",v:["400"]},{f:"Montserrat",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Montserrat Alternates",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Montserrat Subrayada",v:["400","700"]},{f:"Moul",v:["400"]},{f:"Moulpali",v:["400"]},{f:"Mountains of Christmas",v:["400","700"]},{f:"Mouse Memoirs",v:["400"]},{f:"Mr Bedfort",v:["400"]},{f:"Mr Dafoe",v:["400"]},{f:"Mr De Haviland",v:["400"]},{f:"Mrs Saint Delafield",v:["400"]},{f:"Mrs Sheppards",v:["400"]},{f:"Mukta",v:["200","300","400","500","600","700","800"]},{f:"Mukta Mahee",v:["200","300","400","500","600","700","800"]},{f:"Mukta Malar",v:["200","300","400","500","600","700","800"]},{f:"Mukta Vaani",v:["200","300","400","500","600","700","800"]},{f:"Mulish",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"MuseoModerno",v:["100","200","300","400","500","600","700","800","900"]},{f:"Mystery Quest",v:["400"]},{f:"NTR",v:["400"]},{f:"Nanum Brush Script",v:["400"]},{f:"Nanum Gothic",v:["400","700","800"]},{f:"Nanum Gothic Coding",v:["400","700"]},{f:"Nanum Myeongjo",v:["400","700","800"]},{f:"Nanum Pen Script",v:["400"]},{f:"Neucha",v:["400"]},{f:"Neuton",v:["200","300","400","400i","700","800"]},{f:"New Rocker",v:["400"]},{f:"News Cycle",v:["400","700"]},{f:"Niconne",v:["400"]},{f:"Niramit",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Nixie One",v:["400"]},{f:"Nobile",v:["400","400i","500","500italic","700","700italic"]},{f:"Nokora",v:["400","700"]},{f:"Norican",v:["400"]},{f:"Nosifer",v:["400"]},{f:"Notable",v:["400"]},{f:"Nothing You Could Do",v:["400"]},{f:"Noticia Text",v:["400","400i","700","700italic"]},{f:"Noto Sans",v:["400","400i","700","700italic"]},{f:"Noto Sans HK",v:["100","300","400","500","700","900"]},{f:"Noto Sans JP",v:["100","300","400","500","700","900"]},{f:"Noto Sans KR",v:["100","300","400","500","700","900"]},{f:"Noto Sans SC",v:["100","300","400","500","700","900"]},{f:"Noto Sans TC",v:["100","300","400","500","700","900"]},{f:"Noto Serif",v:["400","400i","700","700italic"]},{f:"Noto Serif JP",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif KR",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif SC",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif TC",v:["200","300","400","500","600","700","900"]},{f:"Nova Cut",v:["400"]},{f:"Nova Flat",v:["400"]},{f:"Nova Mono",v:["400"]},{f:"Nova Oval",v:["400"]},{f:"Nova Round",v:["400"]},{f:"Nova Script",v:["400"]},{f:"Nova Slim",v:["400"]},{f:"Nova Square",v:["400"]},{f:"Numans",v:["400"]},{f:"Nunito",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Nunito Sans",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Odibee Sans",v:["400"]},{f:"Odor Mean Chey",v:["400"]},{f:"Offside",v:["400"]},{f:"Old Standard TT",v:["400","400i","700"]},{f:"Oldenburg",v:["400"]},{f:"Oleo Script",v:["400","700"]},{f:"Oleo Script Swash Caps",v:["400","700"]},{f:"Open Sans",v:["300","300italic","400","400i","600","600italic","700","700italic","800","800italic"]},{f:"Open Sans Condensed",v:["300","300italic","700"]},{f:"Oranienbaum",v:["400"]},{f:"Orbitron",v:["400","500","600","700","800","900"]},{f:"Oregano",v:["400","400i"]},{f:"Orienta",v:["400"]},{f:"Original Surfer",v:["400"]},{f:"Oswald",v:["200","300","400","500","600","700"]},{f:"Over the Rainbow",v:["400"]},{f:"Overlock",v:["400","400i","700","700italic","900","900italic"]},{f:"Overlock SC",v:["400"]},{f:"Overpass",v:["100","100italic","200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Overpass Mono",v:["300","400","600","700"]},{f:"Ovo",v:["400"]},{f:"Oxanium",v:["200","300","400","500","600","700","800"]},{f:"Oxygen",v:["300","400","700"]},{f:"Oxygen Mono",v:["400"]},{f:"PT Mono",v:["400"]},{f:"PT Sans",v:["400","400i","700","700italic"]},{f:"PT Sans Caption",v:["400","700"]},{f:"PT Sans Narrow",v:["400","700"]},{f:"PT Serif",v:["400","400i","700","700italic"]},{f:"PT Serif Caption",v:["400","400i"]},{f:"Pacifico",v:["400"]},{f:"Padauk",v:["400","700"]},{f:"Palanquin",v:["100","200","300","400","500","600","700"]},{f:"Palanquin Dark",v:["400","500","600","700"]},{f:"Pangolin",v:["400"]},{f:"Paprika",v:["400"]},{f:"Parisienne",v:["400"]},{f:"Passero One",v:["400"]},{f:"Passion One",v:["400","700","900"]},{f:"Pathway Gothic One",v:["400"]},{f:"Patrick Hand",v:["400"]},{f:"Patrick Hand SC",v:["400"]},{f:"Pattaya",v:["400"]},{f:"Patua One",v:["400"]},{f:"Pavanam",v:["400"]},{f:"Paytone One",v:["400"]},{f:"Peddana",v:["400"]},{f:"Peralta",v:["400"]},{f:"Permanent Marker",v:["400"]},{f:"Petit Formal Script",v:["400"]},{f:"Petrona",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Philosopher",v:["400","400i","700","700italic"]},{f:"Piedra",v:["400"]},{f:"Pinyon Script",v:["400"]},{f:"Pirata One",v:["400"]},{f:"Plaster",v:["400"]},{f:"Play",v:["400","700"]},{f:"Playball",v:["400"]},{f:"Playfair Display",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Playfair Display SC",v:["400","400i","700","700italic","900","900italic"]},{f:"Podkova",v:["400","500","600","700","800"]},{f:"Poiret One",v:["400"]},{f:"Poller One",v:["400"]},{f:"Poly",v:["400","400i"]},{f:"Pompiere",v:["400"]},{f:"Pontano Sans",v:["400"]},{f:"Poor Story",v:["400"]},{f:"Poppins",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Port Lligat Sans",v:["400"]},{f:"Port Lligat Slab",v:["400"]},{f:"Pragati Narrow",v:["400","700"]},{f:"Prata",v:["400"]},{f:"Preahvihear",v:["400"]},{f:"Press Start 2P",v:["400"]},{f:"Pridi",v:["200","300","400","500","600","700"]},{f:"Princess Sofia",v:["400"]},{f:"Prociono",v:["400"]},{f:"Prompt",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Prosto One",v:["400"]},{f:"Proza Libre",v:["400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Public Sans",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Puritan",v:["400","400i","700","700italic"]},{f:"Purple Purse",v:["400"]},{f:"Quando",v:["400"]},{f:"Quantico",v:["400","400i","700","700italic"]},{f:"Quattrocento",v:["400","700"]},{f:"Quattrocento Sans",v:["400","400i","700","700italic"]},{f:"Questrial",v:["400"]},{f:"Quicksand",v:["300","400","500","600","700"]},{f:"Quintessential",v:["400"]},{f:"Qwigley",v:["400"]},{f:"Racing Sans One",v:["400"]},{f:"Radley",v:["400","400i"]},{f:"Rajdhani",v:["300","400","500","600","700"]},{f:"Rakkas",v:["400"]},{f:"Raleway",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Raleway Dots",v:["400"]},{f:"Ramabhadra",v:["400"]},{f:"Ramaraja",v:["400"]},{f:"Rambla",v:["400","400i","700","700italic"]},{f:"Rammetto One",v:["400"]},{f:"Ranchers",v:["400"]},{f:"Rancho",v:["400"]},{f:"Ranga",v:["400","700"]},{f:"Rasa",v:["300","400","500","600","700"]},{f:"Rationale",v:["400"]},{f:"Ravi Prakash",v:["400"]},{f:"Recursive",v:["300","400","500","600","700","800","900"]},{f:"Red Hat Display",v:["400","400i","500","500italic","700","700italic","900","900italic"]},{f:"Red Hat Text",v:["400","400i","500","500italic","700","700italic"]},{f:"Red Rose",v:["300","400","700"]},{f:"Redressed",v:["400"]},{f:"Reem Kufi",v:["400"]},{f:"Reenie Beanie",v:["400"]},{f:"Revalia",v:["400"]},{f:"Rhodium Libre",v:["400"]},{f:"Ribeye",v:["400"]},{f:"Ribeye Marrow",v:["400"]},{f:"Righteous",v:["400"]},{f:"Risque",v:["400"]},{f:"Roboto",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","900","900italic"]},{f:"Roboto Condensed",v:["300","300italic","400","400i","700","700italic"]},{f:"Roboto Mono",v:["100","200","300","400","500","600","700","100italic","200italic","300italic","400i","500italic","600italic","700italic"]},{f:"Roboto Slab",v:["100","200","300","400","500","600","700","800","900"]},{f:"Rochester",v:["400"]},{f:"Rock Salt",v:["400"]},{f:"Rokkitt",v:["100","200","300","400","500","600","700","800","900"]},{f:"Romanesco",v:["400"]},{f:"Ropa Sans",v:["400","400i"]},{f:"Rosario",v:["300","400","500","600","700","300italic","400i","500italic","600italic","700italic"]},{f:"Rosarivo",v:["400","400i"]},{f:"Rouge Script",v:["400"]},{f:"Rowdies",v:["300","400","700"]},{f:"Rozha One",v:["400"]},{f:"Rubik",v:["300","400","500","600","700","800","900","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Rubik Mono One",v:["400"]},{f:"Ruda",v:["400","500","600","700","800","900"]},{f:"Rufina",v:["400","700"]},{f:"Ruge Boogie",v:["400"]},{f:"Ruluko",v:["400"]},{f:"Rum Raisin",v:["400"]},{f:"Ruslan Display",v:["400"]},{f:"Russo One",v:["400"]},{f:"Ruthie",v:["400"]},{f:"Rye",v:["400"]},{f:"Sacramento",v:["400"]},{f:"Sahitya",v:["400","700"]},{f:"Sail",v:["400"]},{f:"Saira",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Extra Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Semi Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Stencil One",v:["400"]},{f:"Salsa",v:["400"]},{f:"Sanchez",v:["400","400i"]},{f:"Sancreek",v:["400"]},{f:"Sansita",v:["400","400i","700","700italic","800","800italic","900","900italic"]},{f:"Sarabun",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Sarala",v:["400","700"]},{f:"Sarina",v:["400"]},{f:"Sarpanch",v:["400","500","600","700","800","900"]},{f:"Satisfy",v:["400"]},{f:"Sawarabi Gothic",v:["400"]},{f:"Sawarabi Mincho",v:["400"]},{f:"Scada",v:["400","400i","700","700italic"]},{f:"Scheherazade",v:["400","700"]},{f:"Schoolbell",v:["400"]},{f:"Scope One",v:["400"]},{f:"Seaweed Script",v:["400"]},{f:"Secular One",v:["400"]},{f:"Sedgwick Ave",v:["400"]},{f:"Sedgwick Ave Display",v:["400"]},{f:"Sen",v:["400","700","800"]},{f:"Sevillana",v:["400"]},{f:"Seymour One",v:["400"]},{f:"Shadows Into Light",v:["400"]},{f:"Shadows Into Light Two",v:["400"]},{f:"Shanti",v:["400"]},{f:"Share",v:["400","400i","700","700italic"]},{f:"Share Tech",v:["400"]},{f:"Share Tech Mono",v:["400"]},{f:"Shojumaru",v:["400"]},{f:"Short Stack",v:["400"]},{f:"Shrikhand",v:["400"]},{f:"Siemreap",v:["400"]},{f:"Sigmar One",v:["400"]},{f:"Signika",v:["300","400","500","600","700"]},{f:"Signika Negative",v:["300","400","600","700"]},{f:"Simonetta",v:["400","400i","900","900italic"]},{f:"Single Day",v:["400"]},{f:"Sintony",v:["400","700"]},{f:"Sirin Stencil",v:["400"]},{f:"Six Caps",v:["400"]},{f:"Skranji",v:["400","700"]},{f:"Slabo 13px",v:["400"]},{f:"Slabo 27px",v:["400"]},{f:"Slackey",v:["400"]},{f:"Smokum",v:["400"]},{f:"Smythe",v:["400"]},{f:"Sniglet",v:["400","800"]},{f:"Snippet",v:["400"]},{f:"Snowburst One",v:["400"]},{f:"Sofadi One",v:["400"]},{f:"Sofia",v:["400"]},{f:"Solway",v:["300","400","500","700","800"]},{f:"Song Myung",v:["400"]},{f:"Sonsie One",v:["400"]},{f:"Sora",v:["100","200","300","400","500","600","700","800"]},{f:"Sorts Mill Goudy",v:["400","400i"]},{f:"Source Code Pro",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","900","900italic"]},{f:"Source Sans Pro",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900","900italic"]},{f:"Source Serif Pro",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900","900italic"]},{f:"Space Mono",v:["400","400i","700","700italic"]},{f:"Spartan",v:["100","200","300","400","500","600","700","800","900"]},{f:"Special Elite",v:["400"]},{f:"Spectral",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Spectral SC",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Spicy Rice",v:["400"]},{f:"Spinnaker",v:["400"]},{f:"Spirax",v:["400"]},{f:"Squada One",v:["400"]},{f:"Sree Krushnadevaraya",v:["400"]},{f:"Sriracha",v:["400"]},{f:"Srisakdi",v:["400","700"]},{f:"Staatliches",v:["400"]},{f:"Stalemate",v:["400"]},{f:"Stalinist One",v:["400"]},{f:"Stardos Stencil",v:["400","700"]},{f:"Stint Ultra Condensed",v:["400"]},{f:"Stint Ultra Expanded",v:["400"]},{f:"Stoke",v:["300","400"]},{f:"Strait",v:["400"]},{f:"Stylish",v:["400"]},{f:"Sue Ellen Francisco",v:["400"]},{f:"Suez One",v:["400"]},{f:"Sulphur Point",v:["300","400","700"]},{f:"Sumana",v:["400","700"]},{f:"Sunflower",v:["300","500","700"]},{f:"Sunshiney",v:["400"]},{f:"Supermercado One",v:["400"]},{f:"Sura",v:["400","700"]},{f:"Suranna",v:["400"]},{f:"Suravaram",v:["400"]},{f:"Suwannaphum",v:["400"]},{f:"Swanky and Moo Moo",v:["400"]},{f:"Syncopate",v:["400","700"]},{f:"Syne",v:["400","500","600","700","800"]},{f:"Tajawal",v:["200","300","400","500","700","800","900"]},{f:"Tangerine",v:["400","700"]},{f:"Taprom",v:["400"]},{f:"Tauri",v:["400"]},{f:"Taviraj",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Teko",v:["300","400","500","600","700"]},{f:"Telex",v:["400"]},{f:"Tenali Ramakrishna",v:["400"]},{f:"Tenor Sans",v:["400"]},{f:"Text Me One",v:["400"]},{f:"Thasadith",v:["400","400i","700","700italic"]},{f:"The Girl Next Door",v:["400"]},{f:"Tienne",v:["400","700","900"]},{f:"Tillana",v:["400","500","600","700","800"]},{f:"Timmana",v:["400"]},{f:"Tinos",v:["400","400i","700","700italic"]},{f:"Titan One",v:["400"]},{f:"Titillium Web",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900"]},{f:"Tomorrow",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Trade Winds",v:["400"]},{f:"Trirong",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Trocchi",v:["400"]},{f:"Trochut",v:["400","400i","700"]},{f:"Trykker",v:["400"]},{f:"Tulpen One",v:["400"]},{f:"Turret Road",v:["200","300","400","500","700","800"]},{f:"Ubuntu",v:["300","300italic","400","400i","500","500italic","700","700italic"]},{f:"Ubuntu Condensed",v:["400"]},{f:"Ubuntu Mono",v:["400","400i","700","700italic"]},{f:"Ultra",v:["400"]},{f:"Uncial Antiqua",v:["400"]},{f:"Underdog",v:["400"]},{f:"Unica One",v:["400"]},{f:"UnifrakturCook",v:["700"]},{f:"UnifrakturMaguntia",v:["400"]},{f:"Unkempt",v:["400","700"]},{f:"Unlock",v:["400"]},{f:"Unna",v:["400","400i","700","700italic"]},{f:"VT323",v:["400"]},{f:"Vampiro One",v:["400"]},{f:"Varela",v:["400"]},{f:"Varela Round",v:["400"]},{f:"Varta",v:["300","400","500","600","700"]},{f:"Vast Shadow",v:["400"]},{f:"Vesper Libre",v:["400","500","700","900"]},{f:"Viaoda Libre",v:["400"]},{f:"Vibes",v:["400"]},{f:"Vibur",v:["400"]},{f:"Vidaloka",v:["400"]},{f:"Viga",v:["400"]},{f:"Voces",v:["400"]},{f:"Volkhov",v:["400","400i","700","700italic"]},{f:"Vollkorn",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Vollkorn SC",v:["400","600","700","900"]},{f:"Voltaire",v:["400"]},{f:"Waiting for the Sunrise",v:["400"]},{f:"Wallpoet",v:["400"]},{f:"Walter Turncoat",v:["400"]},{f:"Warnes",v:["400"]},{f:"Wellfleet",v:["400"]},{f:"Wendy One",v:["400"]},{f:"Wire One",v:["400"]},{f:"Work Sans",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Yanone Kaffeesatz",v:["200","300","400","500","600","700"]},{f:"Yantramanav",v:["100","300","400","500","700","900"]},{f:"Yatra One",v:["400"]},{f:"Yellowtail",v:["400"]},{f:"Yeon Sung",v:["400"]},{f:"Yeseva One",v:["400"]},{f:"Yesteryear",v:["400"]},{f:"Yrsa",v:["300","400","500","600","700"]},{f:"ZCOOL KuaiLe",v:["400"]},{f:"ZCOOL QingKe HuangYou",v:["400"]},{f:"ZCOOL XiaoWei",v:["400"]},{f:"Zeyada",v:["400"]},{f:"Zhi Mang Xing",v:["400"]},{f:"Zilla Slab",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Zilla Slab Highlight",v:["400","700"]}]}},function(i,a){i.exports={kind:"webfonts#webfontList",items:[{id:"arial",label:"Arial",stack:"Arial, Helvetica Neue, Helvetica, sans-serif"},{id:"calibri",label:"Calibri",stack:"Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;"},{id:"consolas",label:"Consolas",stack:"Consolas, monaco, monospace"},{id:"courier-new",label:"Courier New",stack:"Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace"},{id:"helvetica",label:"Helvetica Neue",stack:"Helvetica Neue, Helvetica, Arial, sans-serif"},{id:"georgia",label:"Georgia",stack:"Georgia, Times, Times New Roman, serif"},{id:"futura",label:"Futura",stack:"Futura, Trebuchet MS, Arial, sans-serif"},{id:"lucida-grande",label:"Lucida Grande",stack:"Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif"},{id:"tahoma",label:"Tahoma",stack:"Tahoma, Verdana, Segoe, sans-serif"},{id:"times-new-roman",label:"Times New Roman",stack:"TimesNewRoman, Times New Roman, Times, Baskerville, Georgia, serif"},{id:"trebuchet",label:"Trebuchet MS",stack:"Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"},{id:"palatino",label:"Palatino",stack:"Palatino, Palatino Linotype, Palatino LT STD, Book Antiqua, Georgia, serif"},{id:"verdana",label:"Verdana",stack:"Verdana, Geneva, sans-serif;"}]}},function(i,a,t){"use strict";var e=wp.blocks.createBlock,l={from:[{type:"block",blocks:["core/paragraph"],transform:function(i){var a=i.content;return e("olympus-google-fonts/google-fonts",{content:a})}},{type:"block",blocks:["core/heading"],transform:function(i){var a=i.content,t=i.level;return e("olympus-google-fonts/google-fonts",{content:a,blockType:"h"+t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(i){var a=i.content;return e("core/paragraph",{content:a})}}]};a.a=l}]);
1
+ !function(i){function a(e){if(t[e])return t[e].exports;var l=t[e]={i:e,l:!1,exports:{}};return i[e].call(l.exports,l,l.exports,a),l.l=!0,l.exports}var t={};a.m=i,a.c=t,a.d=function(i,t,e){a.o(i,t)||Object.defineProperty(i,t,{configurable:!1,enumerable:!0,get:e})},a.n=function(i){var t=i&&i.__esModule?function(){return i.default}:function(){return i};return a.d(t,"a",t),t},a.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},a.p="",a(a.s=0)}([function(i,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});t(1)},function(i,a,t){"use strict";var e=t(2),l=t(5),__=wp.i18n.__;(0,wp.blocks.registerBlockType)("olympus-google-fonts/google-fonts",{title:__("Google Fonts","olympus-google-fonts"),category:"common",icon:wp.element.createElement("svg",{baseProfile:"tiny",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},wp.element.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),wp.element.createElement("path",{d:"M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z"})),keywords:[__("Fonts","olympus-google-fonts"),__("Heading","olympus-google-fonts")],transforms:l.a,edit:e.a,save:function(){return null}})},function(i,a,t){"use strict";function e(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function l(i,a){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!==typeof a&&"function"!==typeof a?i:a}function f(i,a){if("function"!==typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(i,a):i.__proto__=a)}var v=t(3),n=t.n(v),o=t(4),c=t.n(o),r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"===typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s=function(){function i(i,a){for(var t=0;t<a.length;t++){var e=a[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}return function(a,t,e){return t&&i(a.prototype,t),e&&i(a,e),a}}(),__=wp.i18n.__,u=wp.element,d=u.Component,m=u.Fragment,S=wp.components,p=S.SelectControl,h=S.RangeControl,g=S.PanelBody,b=wp.blockEditor,y=b.RichText,C=b.InspectorControls,k=b.BlockControls,M=b.AlignmentToolbar,O=b.PanelColorSettings,w=function(i){function a(){return e(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return f(a,i),s(a,[{key:"componentDidUpdate",value:function(i){this.props.attributes.fontID!==i.attributes.fontID&&(this.props.attributes.v="0")}},{key:"getFontsForSelect",value:function(){var i=Object.values(ogf_custom_fonts).map(function(i){return{value:i.id,label:i.label}});i.unshift({value:"1",label:__("- Custom Fonts -","olympus-google-fonts"),disabled:!0});var a=Object.values(ogf_typekit_fonts).map(function(i){return{value:i.id,label:i.label}});a.unshift({value:"1",label:__("- Typekit Fonts -","olympus-google-fonts"),disabled:!0});var t=c.a.items.map(function(i){var a=i.label;return{value:i.id,label:a}});t.unshift({value:"1",label:__("- System Fonts -","olympus-google-fonts"),disabled:!0});var e=n.a.items.map(function(i){var a=i.f;return{value:a.replace(/\s+/g,"+"),label:a}});return e.unshift({value:"1",label:__("- Google Fonts -","olympus-google-fonts"),disabled:!0}),i.concat(a,t,e)}},{key:"searchFonts",value:function(i,a){for(var t=0;t<a.length;t++)if(a[t].id===i)return a[t]}},{key:"isCustomFont",value:function(i){var a=this.searchFonts(i,Object.values(ogf_custom_fonts));return"object"===("undefined"===typeof a?"undefined":r(a))}},{key:"isSystemFont",value:function(i){var a=this.searchFonts(i,c.a.items);return"object"===("undefined"===typeof a?"undefined":r(a))}},{key:"isTypekitFont",value:function(i){var a=this.searchFonts(i,Object.values(ogf_typekit_fonts));return"object"===("undefined"===typeof a?"undefined":r(a))}},{key:"isItalic",value:function(i){return!i.includes("0i")}},{key:"getVariantsForSelect",value:function(i){if(i){var a={0:__("- Default -","olympus-google-fonts"),100:__("Thin","olympus-google-fonts"),200:__("Extra Light","olympus-google-fonts"),300:__("Light","olympus-google-fonts"),400:__("Normal","olympus-google-fonts"),500:__("Medium","olympus-google-fonts"),600:__("Semi Bold","olympus-google-fonts"),700:__("Bold","olympus-google-fonts"),800:__("Extra Bold","olympus-google-fonts"),900:__("Ultra Bold","olympus-google-fonts")};return-1===i.v.indexOf("0")&&i.v.unshift("0"),i.v.filter(this.isItalic).map(function(i){return{value:i,label:a[i]}})}}},{key:"getFontObject",value:function(i){if(i)for(var a=0;a<n.a.items.length;a++)if(n.a.items[a].f===i)return n.a.items[a]}},{key:"addGoogleFontToHead",value:function(i,a){if(i&&a){var t=document.head,e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href="https://fonts.googleapis.com/css?family="+i.replace(/\s+/g,"+")+":"+a.v.join(","),t.appendChild(e)}}},{key:"render",value:function(){var i=this.props,a=i.attributes,t=i.setAttributes,e=a.fontID,l=a.content,f=a.align,v=a.variant,n=a.fontSize,o=a.lineHeight,c=a.color,r=a.blockType,s=this.getFontsForSelect();s.unshift({label:"- Default -",value:"0"});var u=[{value:"0",label:"- Default -"},{value:"400",label:"Regular"},{value:"700",label:"Bold"}];if(!this.isTypekitFont(e)&&!this.isSystemFont(e)&&!this.isCustomFont(e)){var d=this.getFontObject(e.replace(/\+/g," "));u=this.getVariantsForSelect(d),this.addGoogleFontToHead(e,d)}var S=wp.element.createElement(C,null,wp.element.createElement(g,{title:__("Font Settings","olympus-google-fonts")},wp.element.createElement(p,{label:__("Block Type","olympus-google-fonts"),type:"string",value:r,options:[{label:"Paragraph",value:"p"},{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"},{label:"Span",value:"span"}],onChange:function(i){return t({blockType:i})}}),wp.element.createElement(p,{label:__("Font","olympus-google-fonts"),type:"string",value:e,options:s,onChange:function(i){return t({fontID:i})}}),wp.element.createElement(p,{label:__("Font Variant","olympus-google-fonts"),type:"string",value:v,options:u,onChange:function(i){return t({variant:i})}}),wp.element.createElement(h,{label:__("Font Size","olympus-google-fonts"),value:n,onChange:function(i){return t({fontSize:i})},allowReset:!0,min:"10",max:"150"}),wp.element.createElement(h,{label:__("Line Height","olympus-google-fonts"),value:o,onChange:function(i){return t({lineHeight:i})},allowReset:!0,min:"1",max:"3",step:"0.1"}),wp.element.createElement(O,{title:__("Color Settings","olympus-google-fonts"),colorSettings:[{value:a.color,onChange:function(i){return t({color:i})},label:__("Text Color","olympus-google-fonts")}]})));return wp.element.createElement(m,null,S,wp.element.createElement(k,null,wp.element.createElement(M,{value:f,onChange:function(i){return t({align:i})}})),wp.element.createElement(y,{tagName:r||"p",value:l,onChange:function(i){return t({content:i})},style:{fontSize:n?n+"px":void 0,textAlign:f,fontFamily:e.replace(/\+/g," "),fontWeight:v,lineHeight:o,color:c},placeholder:__("Add some content...","olympus-google-fonts")}))}}]),a}(d);a.a=w},function(i,a){i.exports={kind:"webfonts#webfontList",items:[{f:"ABeeZee",v:["400","400i"]},{f:"Abel",v:["400"]},{f:"Abhaya Libre",v:["400","500","600","700","800"]},{f:"Abril Fatface",v:["400"]},{f:"Aclonica",v:["400"]},{f:"Acme",v:["400"]},{f:"Actor",v:["400"]},{f:"Adamina",v:["400"]},{f:"Advent Pro",v:["100","200","300","400","500","600","700"]},{f:"Aguafina Script",v:["400"]},{f:"Akronim",v:["400"]},{f:"Aladin",v:["400"]},{f:"Alata",v:["400"]},{f:"Alatsi",v:["400"]},{f:"Aldrich",v:["400"]},{f:"Alef",v:["400","700"]},{f:"Alegreya",v:["400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya SC",v:["400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya Sans",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Alegreya Sans SC",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","800","800italic","900","900italic"]},{f:"Aleo",v:["300","300italic","400","400i","700","700italic"]},{f:"Alex Brush",v:["400"]},{f:"Alfa Slab One",v:["400"]},{f:"Alice",v:["400"]},{f:"Alike",v:["400"]},{f:"Alike Angular",v:["400"]},{f:"Allan",v:["400","700"]},{f:"Allerta",v:["400"]},{f:"Allerta Stencil",v:["400"]},{f:"Allura",v:["400"]},{f:"Almarai",v:["300","400","700","800"]},{f:"Almendra",v:["400","400i","700","700italic"]},{f:"Almendra Display",v:["400"]},{f:"Almendra SC",v:["400"]},{f:"Amarante",v:["400"]},{f:"Amaranth",v:["400","400i","700","700italic"]},{f:"Amatic SC",v:["400","700"]},{f:"Amethysta",v:["400"]},{f:"Amiko",v:["400","600","700"]},{f:"Amiri",v:["400","400i","700","700italic"]},{f:"Amita",v:["400","700"]},{f:"Anaheim",v:["400"]},{f:"Andada",v:["400"]},{f:"Andika",v:["400"]},{f:"Angkor",v:["400"]},{f:"Annie Use Your Telescope",v:["400"]},{f:"Anonymous Pro",v:["400","400i","700","700italic"]},{f:"Antic",v:["400"]},{f:"Antic Didone",v:["400"]},{f:"Antic Slab",v:["400"]},{f:"Anton",v:["400"]},{f:"Arapey",v:["400","400i"]},{f:"Arbutus",v:["400"]},{f:"Arbutus Slab",v:["400"]},{f:"Architects Daughter",v:["400"]},{f:"Archivo",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Archivo Black",v:["400"]},{f:"Archivo Narrow",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Aref Ruqaa",v:["400","700"]},{f:"Arima Madurai",v:["100","200","300","400","500","700","800","900"]},{f:"Arimo",v:["400","400i","700","700italic"]},{f:"Arizonia",v:["400"]},{f:"Armata",v:["400"]},{f:"Arsenal",v:["400","400i","700","700italic"]},{f:"Artifika",v:["400"]},{f:"Arvo",v:["400","400i","700","700italic"]},{f:"Arya",v:["400","700"]},{f:"Asap",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Asap Condensed",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Asar",v:["400"]},{f:"Asset",v:["400"]},{f:"Assistant",v:["200","300","400","600","700","800"]},{f:"Astloch",v:["400","700"]},{f:"Asul",v:["400","700"]},{f:"Athiti",v:["200","300","400","500","600","700"]},{f:"Atma",v:["300","400","500","600","700"]},{f:"Atomic Age",v:["400"]},{f:"Aubrey",v:["400"]},{f:"Audiowide",v:["400"]},{f:"Autour One",v:["400"]},{f:"Average",v:["400"]},{f:"Average Sans",v:["400"]},{f:"Averia Gruesa Libre",v:["400"]},{f:"Averia Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"Averia Sans Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"Averia Serif Libre",v:["300","300italic","400","400i","700","700italic"]},{f:"B612",v:["400","400i","700","700italic"]},{f:"B612 Mono",v:["400","400i","700","700italic"]},{f:"Bad Script",v:["400"]},{f:"Bahiana",v:["400"]},{f:"Bahianita",v:["400"]},{f:"Bai Jamjuree",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Baloo 2",v:["400","500","600","700","800"]},{f:"Baloo Bhai 2",v:["400","500","600","700","800"]},{f:"Baloo Bhaina 2",v:["400","500","600","700","800"]},{f:"Baloo Chettan 2",v:["400","500","600","700","800"]},{f:"Baloo Da 2",v:["400","500","600","700","800"]},{f:"Baloo Paaji 2",v:["400","500","600","700","800"]},{f:"Baloo Tamma 2",v:["400","500","600","700","800"]},{f:"Baloo Tammudu 2",v:["400","500","600","700","800"]},{f:"Baloo Thambi 2",v:["400","500","600","700","800"]},{f:"Balsamiq Sans",v:["400","400i","700","700italic"]},{f:"Balthazar",v:["400"]},{f:"Bangers",v:["400"]},{f:"Barlow",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barlow Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barlow Semi Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Barriecito",v:["400"]},{f:"Barrio",v:["400"]},{f:"Basic",v:["400"]},{f:"Baskervville",v:["400","400i"]},{f:"Battambang",v:["400","700"]},{f:"Baumans",v:["400"]},{f:"Bayon",v:["400"]},{f:"Be Vietnam",v:["100","100italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Bebas Neue",v:["400"]},{f:"Belgrano",v:["400"]},{f:"Bellefair",v:["400"]},{f:"Belleza",v:["400"]},{f:"Bellota",v:["300","300italic","400","400i","700","700italic"]},{f:"Bellota Text",v:["300","300italic","400","400i","700","700italic"]},{f:"BenchNine",v:["300","400","700"]},{f:"Bentham",v:["400"]},{f:"Berkshire Swash",v:["400"]},{f:"Beth Ellen",v:["400"]},{f:"Bevan",v:["400"]},{f:"Big Shoulders Display",v:["100","300","400","500","600","700","800","900"]},{f:"Big Shoulders Text",v:["100","300","400","500","600","700","800","900"]},{f:"Bigelow Rules",v:["400"]},{f:"Bigshot One",v:["400"]},{f:"Bilbo",v:["400"]},{f:"Bilbo Swash Caps",v:["400"]},{f:"BioRhyme",v:["200","300","400","700","800"]},{f:"BioRhyme Expanded",v:["200","300","400","700","800"]},{f:"Biryani",v:["200","300","400","600","700","800","900"]},{f:"Bitter",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Black And White Picture",v:["400"]},{f:"Black Han Sans",v:["400"]},{f:"Black Ops One",v:["400"]},{f:"Blinker",v:["100","200","300","400","600","700","800","900"]},{f:"Bokor",v:["400"]},{f:"Bonbon",v:["400"]},{f:"Boogaloo",v:["400"]},{f:"Bowlby One",v:["400"]},{f:"Bowlby One SC",v:["400"]},{f:"Brawler",v:["400"]},{f:"Bree Serif",v:["400"]},{f:"Bubblegum Sans",v:["400"]},{f:"Bubbler One",v:["400"]},{f:"Buda",v:["300"]},{f:"Buenard",v:["400","700"]},{f:"Bungee",v:["400"]},{f:"Bungee Hairline",v:["400"]},{f:"Bungee Inline",v:["400"]},{f:"Bungee Outline",v:["400"]},{f:"Bungee Shade",v:["400"]},{f:"Butcherman",v:["400"]},{f:"Butterfly Kids",v:["400"]},{f:"Cabin",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Cabin Condensed",v:["400","500","600","700"]},{f:"Cabin Sketch",v:["400","700"]},{f:"Caesar Dressing",v:["400"]},{f:"Cagliostro",v:["400"]},{f:"Cairo",v:["200","300","400","600","700","900"]},{f:"Caladea",v:["400","400i","700","700italic"]},{f:"Calistoga",v:["400"]},{f:"Calligraffitti",v:["400"]},{f:"Cambay",v:["400","400i","700","700italic"]},{f:"Cambo",v:["400"]},{f:"Candal",v:["400"]},{f:"Cantarell",v:["400","400i","700","700italic"]},{f:"Cantata One",v:["400"]},{f:"Cantora One",v:["400"]},{f:"Capriola",v:["400"]},{f:"Cardo",v:["400","400i","700"]},{f:"Carme",v:["400"]},{f:"Carrois Gothic",v:["400"]},{f:"Carrois Gothic SC",v:["400"]},{f:"Carter One",v:["400"]},{f:"Catamaran",v:["100","200","300","400","500","600","700","800","900"]},{f:"Caudex",v:["400","400i","700","700italic"]},{f:"Caveat",v:["400","700"]},{f:"Caveat Brush",v:["400"]},{f:"Cedarville Cursive",v:["400"]},{f:"Ceviche One",v:["400"]},{f:"Chakra Petch",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Changa",v:["200","300","400","500","600","700","800"]},{f:"Changa One",v:["400","400i"]},{f:"Chango",v:["400"]},{f:"Charm",v:["400","700"]},{f:"Charmonman",v:["400","700"]},{f:"Chathura",v:["100","300","400","700","800"]},{f:"Chau Philomene One",v:["400","400i"]},{f:"Chela One",v:["400"]},{f:"Chelsea Market",v:["400"]},{f:"Chenla",v:["400"]},{f:"Cherry Cream Soda",v:["400"]},{f:"Cherry Swash",v:["400","700"]},{f:"Chewy",v:["400"]},{f:"Chicle",v:["400"]},{f:"Chilanka",v:["400"]},{f:"Chivo",v:["300","300italic","400","400i","700","700italic","900","900italic"]},{f:"Chonburi",v:["400"]},{f:"Cinzel",v:["400","500","600","700","800","900"]},{f:"Cinzel Decorative",v:["400","700","900"]},{f:"Clicker Script",v:["400"]},{f:"Coda",v:["400","800"]},{f:"Coda Caption",v:["800"]},{f:"Codystar",v:["300","400"]},{f:"Coiny",v:["400"]},{f:"Combo",v:["400"]},{f:"Comfortaa",v:["300","400","500","600","700"]},{f:"Comic Neue",v:["300","300italic","400","400i","700","700italic"]},{f:"Coming Soon",v:["400"]},{f:"Concert One",v:["400"]},{f:"Condiment",v:["400"]},{f:"Content",v:["400","700"]},{f:"Contrail One",v:["400"]},{f:"Convergence",v:["400"]},{f:"Cookie",v:["400"]},{f:"Copse",v:["400"]},{f:"Corben",v:["400","700"]},{f:"Cormorant",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant Garamond",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant Infant",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Cormorant SC",v:["300","400","500","600","700"]},{f:"Cormorant Unicase",v:["300","400","500","600","700"]},{f:"Cormorant Upright",v:["300","400","500","600","700"]},{f:"Courgette",v:["400"]},{f:"Courier Prime",v:["400","400i","700","700italic"]},{f:"Cousine",v:["400","400i","700","700italic"]},{f:"Coustard",v:["400","900"]},{f:"Covered By Your Grace",v:["400"]},{f:"Crafty Girls",v:["400"]},{f:"Creepster",v:["400"]},{f:"Crete Round",v:["400","400i"]},{f:"Crimson Pro",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Crimson Text",v:["400","400i","600","600italic","700","700italic"]},{f:"Croissant One",v:["400"]},{f:"Crushed",v:["400"]},{f:"Cuprum",v:["400","400i","700","700italic"]},{f:"Cute Font",v:["400"]},{f:"Cutive",v:["400"]},{f:"Cutive Mono",v:["400"]},{f:"DM Mono",v:["300","300italic","400","400i","500","500italic"]},{f:"DM Sans",v:["400","400i","500","500italic","700","700italic"]},{f:"DM Serif Display",v:["400","400i"]},{f:"DM Serif Text",v:["400","400i"]},{f:"Damion",v:["400"]},{f:"Dancing Script",v:["400","500","600","700"]},{f:"Dangrek",v:["400"]},{f:"Darker Grotesque",v:["300","400","500","600","700","800","900"]},{f:"David Libre",v:["400","500","700"]},{f:"Dawning of a New Day",v:["400"]},{f:"Days One",v:["400"]},{f:"Dekko",v:["400"]},{f:"Delius",v:["400"]},{f:"Delius Swash Caps",v:["400"]},{f:"Delius Unicase",v:["400","700"]},{f:"Della Respira",v:["400"]},{f:"Denk One",v:["400"]},{f:"Devonshire",v:["400"]},{f:"Dhurjati",v:["400"]},{f:"Didact Gothic",v:["400"]},{f:"Diplomata",v:["400"]},{f:"Diplomata SC",v:["400"]},{f:"Do Hyeon",v:["400"]},{f:"Dokdo",v:["400"]},{f:"Domine",v:["400","700"]},{f:"Donegal One",v:["400"]},{f:"Doppio One",v:["400"]},{f:"Dorsa",v:["400"]},{f:"Dosis",v:["200","300","400","500","600","700","800"]},{f:"Dr Sugiyama",v:["400"]},{f:"Duru Sans",v:["400"]},{f:"Dynalight",v:["400"]},{f:"EB Garamond",v:["400","500","600","700","800","400i","500italic","600italic","700italic","800italic"]},{f:"Eagle Lake",v:["400"]},{f:"East Sea Dokdo",v:["400"]},{f:"Eater",v:["400"]},{f:"Economica",v:["400","400i","700","700italic"]},{f:"Eczar",v:["400","500","600","700","800"]},{f:"El Messiri",v:["400","500","600","700"]},{f:"Electrolize",v:["400"]},{f:"Elsie",v:["400","900"]},{f:"Elsie Swash Caps",v:["400","900"]},{f:"Emblema One",v:["400"]},{f:"Emilys Candy",v:["400"]},{f:"Encode Sans",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Expanded",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Semi Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Encode Sans Semi Expanded",v:["100","200","300","400","500","600","700","800","900"]},{f:"Engagement",v:["400"]},{f:"Englebert",v:["400"]},{f:"Enriqueta",v:["400","500","600","700"]},{f:"Epilogue",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Erica One",v:["400"]},{f:"Esteban",v:["400"]},{f:"Euphoria Script",v:["400"]},{f:"Ewert",v:["400"]},{f:"Exo",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Exo 2",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Expletus Sans",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Fahkwang",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Fanwood Text",v:["400","400i"]},{f:"Farro",v:["300","400","500","700"]},{f:"Farsan",v:["400"]},{f:"Fascinate",v:["400"]},{f:"Fascinate Inline",v:["400"]},{f:"Faster One",v:["400"]},{f:"Fasthand",v:["400"]},{f:"Fauna One",v:["400"]},{f:"Faustina",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Federant",v:["400"]},{f:"Federo",v:["400"]},{f:"Felipa",v:["400"]},{f:"Fenix",v:["400"]},{f:"Finger Paint",v:["400"]},{f:"Fira Code",v:["300","400","500","600","700"]},{f:"Fira Mono",v:["400","500","700"]},{f:"Fira Sans",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fira Sans Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fira Sans Extra Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Fjalla One",v:["400"]},{f:"Fjord One",v:["400"]},{f:"Flamenco",v:["300","400"]},{f:"Flavors",v:["400"]},{f:"Fondamento",v:["400","400i"]},{f:"Fontdiner Swanky",v:["400"]},{f:"Forum",v:["400"]},{f:"Francois One",v:["400"]},{f:"Frank Ruhl Libre",v:["300","400","500","700","900"]},{f:"Freckle Face",v:["400"]},{f:"Fredericka the Great",v:["400"]},{f:"Fredoka One",v:["400"]},{f:"Freehand",v:["400"]},{f:"Fresca",v:["400"]},{f:"Frijole",v:["400"]},{f:"Fruktur",v:["400"]},{f:"Fugaz One",v:["400"]},{f:"GFS Didot",v:["400"]},{f:"GFS Neohellenic",v:["400","400i","700","700italic"]},{f:"Gabriela",v:["400"]},{f:"Gaegu",v:["300","400","700"]},{f:"Gafata",v:["400"]},{f:"Galada",v:["400"]},{f:"Galdeano",v:["400"]},{f:"Galindo",v:["400"]},{f:"Gamja Flower",v:["400"]},{f:"Gayathri",v:["100","400","700"]},{f:"Gelasio",v:["400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Gentium Basic",v:["400","400i","700","700italic"]},{f:"Gentium Book Basic",v:["400","400i","700","700italic"]},{f:"Geo",v:["400","400i"]},{f:"Geostar",v:["400"]},{f:"Geostar Fill",v:["400"]},{f:"Germania One",v:["400"]},{f:"Gidugu",v:["400"]},{f:"Gilda Display",v:["400"]},{f:"Girassol",v:["400"]},{f:"Give You Glory",v:["400"]},{f:"Glass Antiqua",v:["400"]},{f:"Glegoo",v:["400","700"]},{f:"Gloria Hallelujah",v:["400"]},{f:"Goblin One",v:["400"]},{f:"Gochi Hand",v:["400"]},{f:"Gorditas",v:["400","700"]},{f:"Gothic A1",v:["100","200","300","400","500","600","700","800","900"]},{f:"Gotu",v:["400"]},{f:"Goudy Bookletter 1911",v:["400"]},{f:"Graduate",v:["400"]},{f:"Grand Hotel",v:["400"]},{f:"Grandstander",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Gravitas One",v:["400"]},{f:"Great Vibes",v:["400"]},{f:"Grenze",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Grenze Gotisch",v:["100","200","300","400","500","600","700","800","900"]},{f:"Griffy",v:["400"]},{f:"Gruppo",v:["400"]},{f:"Gudea",v:["400","400i","700"]},{f:"Gugi",v:["400"]},{f:"Gupter",v:["400","500","700"]},{f:"Gurajada",v:["400"]},{f:"Habibi",v:["400"]},{f:"Halant",v:["300","400","500","600","700"]},{f:"Hammersmith One",v:["400"]},{f:"Hanalei",v:["400"]},{f:"Hanalei Fill",v:["400"]},{f:"Handlee",v:["400"]},{f:"Hanuman",v:["400","700"]},{f:"Happy Monkey",v:["400"]},{f:"Harmattan",v:["400","700"]},{f:"Headland One",v:["400"]},{f:"Heebo",v:["100","200","300","400","500","600","700","800","900"]},{f:"Henny Penny",v:["400"]},{f:"Hepta Slab",v:["100","200","300","400","500","600","700","800","900"]},{f:"Herr Von Muellerhoff",v:["400"]},{f:"Hi Melody",v:["400"]},{f:"Hind",v:["300","400","500","600","700"]},{f:"Hind Guntur",v:["300","400","500","600","700"]},{f:"Hind Madurai",v:["300","400","500","600","700"]},{f:"Hind Siliguri",v:["300","400","500","600","700"]},{f:"Hind Vadodara",v:["300","400","500","600","700"]},{f:"Holtwood One SC",v:["400"]},{f:"Homemade Apple",v:["400"]},{f:"Homenaje",v:["400"]},{f:"IBM Plex Mono",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Sans",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Sans Condensed",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IBM Plex Serif",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"IM Fell DW Pica",v:["400","400i"]},{f:"IM Fell DW Pica SC",v:["400"]},{f:"IM Fell Double Pica",v:["400","400i"]},{f:"IM Fell Double Pica SC",v:["400"]},{f:"IM Fell English",v:["400","400i"]},{f:"IM Fell English SC",v:["400"]},{f:"IM Fell French Canon",v:["400","400i"]},{f:"IM Fell French Canon SC",v:["400"]},{f:"IM Fell Great Primer",v:["400","400i"]},{f:"IM Fell Great Primer SC",v:["400"]},{f:"Ibarra Real Nova",v:["400","400i","600","600italic","700","700italic"]},{f:"Iceberg",v:["400"]},{f:"Iceland",v:["400"]},{f:"Imprima",v:["400"]},{f:"Inconsolata",v:["200","300","400","500","600","700","800","900"]},{f:"Inder",v:["400"]},{f:"Indie Flower",v:["400"]},{f:"Inika",v:["400","700"]},{f:"Inknut Antiqua",v:["300","400","500","600","700","800","900"]},{f:"Inria Sans",v:["300","300italic","400","400i","700","700italic"]},{f:"Inria Serif",v:["300","300italic","400","400i","700","700italic"]},{f:"Inter",v:["100","200","300","400","500","600","700","800","900"]},{f:"Irish Grover",v:["400"]},{f:"Istok Web",v:["400","400i","700","700italic"]},{f:"Italiana",v:["400"]},{f:"Italianno",v:["400"]},{f:"Itim",v:["400"]},{f:"Jacques Francois",v:["400"]},{f:"Jacques Francois Shadow",v:["400"]},{f:"Jaldi",v:["400","700"]},{f:"Jim Nightshade",v:["400"]},{f:"Jockey One",v:["400"]},{f:"Jolly Lodger",v:["400"]},{f:"Jomhuria",v:["400"]},{f:"Jomolhari",v:["400"]},{f:"Josefin Sans",v:["100","200","300","400","500","600","700","100italic","200italic","300italic","400i","500italic","600italic","700italic"]},{f:"Josefin Slab",v:["100","100italic","300","300italic","400","400i","600","600italic","700","700italic"]},{f:"Jost",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Joti One",v:["400"]},{f:"Jua",v:["400"]},{f:"Judson",v:["400","400i","700"]},{f:"Julee",v:["400"]},{f:"Julius Sans One",v:["400"]},{f:"Junge",v:["400"]},{f:"Jura",v:["300","400","500","600","700"]},{f:"Just Another Hand",v:["400"]},{f:"Just Me Again Down Here",v:["400"]},{f:"K2D",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Kadwa",v:["400","700"]},{f:"Kalam",v:["300","400","700"]},{f:"Kameron",v:["400","700"]},{f:"Kanit",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Kantumruy",v:["300","400","700"]},{f:"Karla",v:["400","400i","700","700italic"]},{f:"Karma",v:["300","400","500","600","700"]},{f:"Katibeh",v:["400"]},{f:"Kaushan Script",v:["400"]},{f:"Kavivanar",v:["400"]},{f:"Kavoon",v:["400"]},{f:"Kdam Thmor",v:["400"]},{f:"Keania One",v:["400"]},{f:"Kelly Slab",v:["400"]},{f:"Kenia",v:["400"]},{f:"Khand",v:["300","400","500","600","700"]},{f:"Khmer",v:["400"]},{f:"Khula",v:["300","400","600","700","800"]},{f:"Kirang Haerang",v:["400"]},{f:"Kite One",v:["400"]},{f:"Knewave",v:["400"]},{f:"KoHo",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kodchasan",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kosugi",v:["400"]},{f:"Kosugi Maru",v:["400"]},{f:"Kotta One",v:["400"]},{f:"Koulen",v:["400"]},{f:"Kranky",v:["400"]},{f:"Kreon",v:["300","400","500","600","700"]},{f:"Kristi",v:["400"]},{f:"Krona One",v:["400"]},{f:"Krub",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Kufam",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Kulim Park",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic"]},{f:"Kumar One",v:["400"]},{f:"Kumar One Outline",v:["400"]},{f:"Kumbh Sans",v:["300","400","700"]},{f:"Kurale",v:["400"]},{f:"La Belle Aurore",v:["400"]},{f:"Lacquer",v:["400"]},{f:"Laila",v:["300","400","500","600","700"]},{f:"Lakki Reddy",v:["400"]},{f:"Lalezar",v:["400"]},{f:"Lancelot",v:["400"]},{f:"Lateef",v:["400"]},{f:"Lato",v:["100","100italic","300","300italic","400","400i","700","700italic","900","900italic"]},{f:"League Script",v:["400"]},{f:"Leckerli One",v:["400"]},{f:"Ledger",v:["400"]},{f:"Lekton",v:["400","400i","700"]},{f:"Lemon",v:["400"]},{f:"Lemonada",v:["300","400","500","600","700"]},{f:"Lexend Deca",v:["400"]},{f:"Lexend Exa",v:["400"]},{f:"Lexend Giga",v:["400"]},{f:"Lexend Mega",v:["400"]},{f:"Lexend Peta",v:["400"]},{f:"Lexend Tera",v:["400"]},{f:"Lexend Zetta",v:["400"]},{f:"Libre Barcode 128",v:["400"]},{f:"Libre Barcode 128 Text",v:["400"]},{f:"Libre Barcode 39",v:["400"]},{f:"Libre Barcode 39 Extended",v:["400"]},{f:"Libre Barcode 39 Extended Text",v:["400"]},{f:"Libre Barcode 39 Text",v:["400"]},{f:"Libre Baskerville",v:["400","400i","700"]},{f:"Libre Caslon Display",v:["400"]},{f:"Libre Caslon Text",v:["400","400i","700"]},{f:"Libre Franklin",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Life Savers",v:["400","700","800"]},{f:"Lilita One",v:["400"]},{f:"Lily Script One",v:["400"]},{f:"Limelight",v:["400"]},{f:"Linden Hill",v:["400","400i"]},{f:"Literata",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Liu Jian Mao Cao",v:["400"]},{f:"Livvic",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","900","900italic"]},{f:"Lobster",v:["400"]},{f:"Lobster Two",v:["400","400i","700","700italic"]},{f:"Londrina Outline",v:["400"]},{f:"Londrina Shadow",v:["400"]},{f:"Londrina Sketch",v:["400"]},{f:"Londrina Solid",v:["100","300","400","900"]},{f:"Long Cang",v:["400"]},{f:"Lora",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Love Ya Like A Sister",v:["400"]},{f:"Loved by the King",v:["400"]},{f:"Lovers Quarrel",v:["400"]},{f:"Luckiest Guy",v:["400"]},{f:"Lusitana",v:["400","700"]},{f:"Lustria",v:["400"]},{f:"M PLUS 1p",v:["100","300","400","500","700","800","900"]},{f:"M PLUS Rounded 1c",v:["100","300","400","500","700","800","900"]},{f:"Ma Shan Zheng",v:["400"]},{f:"Macondo",v:["400"]},{f:"Macondo Swash Caps",v:["400"]},{f:"Mada",v:["200","300","400","500","600","700","900"]},{f:"Magra",v:["400","700"]},{f:"Maiden Orange",v:["400"]},{f:"Maitree",v:["200","300","400","500","600","700"]},{f:"Major Mono Display",v:["400"]},{f:"Mako",v:["400"]},{f:"Mali",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Mallanna",v:["400"]},{f:"Mandali",v:["400"]},{f:"Manjari",v:["100","400","700"]},{f:"Manrope",v:["200","300","400","500","600","700","800"]},{f:"Mansalva",v:["400"]},{f:"Manuale",v:["400","500","600","700","400i","500italic","600italic","700italic"]},{f:"Marcellus",v:["400"]},{f:"Marcellus SC",v:["400"]},{f:"Marck Script",v:["400"]},{f:"Margarine",v:["400"]},{f:"Markazi Text",v:["400","500","600","700"]},{f:"Marko One",v:["400"]},{f:"Marmelad",v:["400"]},{f:"Martel",v:["200","300","400","600","700","800","900"]},{f:"Martel Sans",v:["200","300","400","600","700","800","900"]},{f:"Marvel",v:["400","400i","700","700italic"]},{f:"Mate",v:["400","400i"]},{f:"Mate SC",v:["400"]},{f:"Maven Pro",v:["400","500","600","700","800","900"]},{f:"McLaren",v:["400"]},{f:"Meddon",v:["400"]},{f:"MedievalSharp",v:["400"]},{f:"Medula One",v:["400"]},{f:"Meera Inimai",v:["400"]},{f:"Megrim",v:["400"]},{f:"Meie Script",v:["400"]},{f:"Merienda",v:["400","700"]},{f:"Merienda One",v:["400"]},{f:"Merriweather",v:["300","300italic","400","400i","700","700italic","900","900italic"]},{f:"Merriweather Sans",v:["300","400","500","600","700","800","300italic","400i","500italic","600italic","700italic","800italic"]},{f:"Metal",v:["400"]},{f:"Metal Mania",v:["400"]},{f:"Metamorphous",v:["400"]},{f:"Metrophobic",v:["400"]},{f:"Michroma",v:["400"]},{f:"Milonga",v:["400"]},{f:"Miltonian",v:["400"]},{f:"Miltonian Tattoo",v:["400"]},{f:"Mina",v:["400","700"]},{f:"Miniver",v:["400"]},{f:"Miriam Libre",v:["400","700"]},{f:"Mirza",v:["400","500","600","700"]},{f:"Miss Fajardose",v:["400"]},{f:"Mitr",v:["200","300","400","500","600","700"]},{f:"Modak",v:["400"]},{f:"Modern Antiqua",v:["400"]},{f:"Mogra",v:["400"]},{f:"Molengo",v:["400"]},{f:"Molle",v:["400i"]},{f:"Monda",v:["400","700"]},{f:"Monofett",v:["400"]},{f:"Monoton",v:["400"]},{f:"Monsieur La Doulaise",v:["400"]},{f:"Montaga",v:["400"]},{f:"Montez",v:["400"]},{f:"Montserrat",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Montserrat Alternates",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Montserrat Subrayada",v:["400","700"]},{f:"Moul",v:["400"]},{f:"Moulpali",v:["400"]},{f:"Mountains of Christmas",v:["400","700"]},{f:"Mouse Memoirs",v:["400"]},{f:"Mr Bedfort",v:["400"]},{f:"Mr Dafoe",v:["400"]},{f:"Mr De Haviland",v:["400"]},{f:"Mrs Saint Delafield",v:["400"]},{f:"Mrs Sheppards",v:["400"]},{f:"Mukta",v:["200","300","400","500","600","700","800"]},{f:"Mukta Mahee",v:["200","300","400","500","600","700","800"]},{f:"Mukta Malar",v:["200","300","400","500","600","700","800"]},{f:"Mukta Vaani",v:["200","300","400","500","600","700","800"]},{f:"Mulish",v:["200","300","400","500","600","700","800","900","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"MuseoModerno",v:["100","200","300","400","500","600","700","800","900"]},{f:"Mystery Quest",v:["400"]},{f:"NTR",v:["400"]},{f:"Nanum Brush Script",v:["400"]},{f:"Nanum Gothic",v:["400","700","800"]},{f:"Nanum Gothic Coding",v:["400","700"]},{f:"Nanum Myeongjo",v:["400","700","800"]},{f:"Nanum Pen Script",v:["400"]},{f:"Neucha",v:["400"]},{f:"Neuton",v:["200","300","400","400i","700","800"]},{f:"New Rocker",v:["400"]},{f:"News Cycle",v:["400","700"]},{f:"Niconne",v:["400"]},{f:"Niramit",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Nixie One",v:["400"]},{f:"Nobile",v:["400","400i","500","500italic","700","700italic"]},{f:"Nokora",v:["400","700"]},{f:"Norican",v:["400"]},{f:"Nosifer",v:["400"]},{f:"Notable",v:["400"]},{f:"Nothing You Could Do",v:["400"]},{f:"Noticia Text",v:["400","400i","700","700italic"]},{f:"Noto Sans",v:["400","400i","700","700italic"]},{f:"Noto Sans HK",v:["100","300","400","500","700","900"]},{f:"Noto Sans JP",v:["100","300","400","500","700","900"]},{f:"Noto Sans KR",v:["100","300","400","500","700","900"]},{f:"Noto Sans SC",v:["100","300","400","500","700","900"]},{f:"Noto Sans TC",v:["100","300","400","500","700","900"]},{f:"Noto Serif",v:["400","400i","700","700italic"]},{f:"Noto Serif JP",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif KR",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif SC",v:["200","300","400","500","600","700","900"]},{f:"Noto Serif TC",v:["200","300","400","500","600","700","900"]},{f:"Nova Cut",v:["400"]},{f:"Nova Flat",v:["400"]},{f:"Nova Mono",v:["400"]},{f:"Nova Oval",v:["400"]},{f:"Nova Round",v:["400"]},{f:"Nova Script",v:["400"]},{f:"Nova Slim",v:["400"]},{f:"Nova Square",v:["400"]},{f:"Numans",v:["400"]},{f:"Nunito",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Nunito Sans",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Odibee Sans",v:["400"]},{f:"Odor Mean Chey",v:["400"]},{f:"Offside",v:["400"]},{f:"Old Standard TT",v:["400","400i","700"]},{f:"Oldenburg",v:["400"]},{f:"Oleo Script",v:["400","700"]},{f:"Oleo Script Swash Caps",v:["400","700"]},{f:"Open Sans",v:["300","300italic","400","400i","600","600italic","700","700italic","800","800italic"]},{f:"Open Sans Condensed",v:["300","300italic","700"]},{f:"Oranienbaum",v:["400"]},{f:"Orbitron",v:["400","500","600","700","800","900"]},{f:"Oregano",v:["400","400i"]},{f:"Orienta",v:["400"]},{f:"Original Surfer",v:["400"]},{f:"Oswald",v:["200","300","400","500","600","700"]},{f:"Over the Rainbow",v:["400"]},{f:"Overlock",v:["400","400i","700","700italic","900","900italic"]},{f:"Overlock SC",v:["400"]},{f:"Overpass",v:["100","100italic","200","200italic","300","300italic","400","400i","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Overpass Mono",v:["300","400","600","700"]},{f:"Ovo",v:["400"]},{f:"Oxanium",v:["200","300","400","500","600","700","800"]},{f:"Oxygen",v:["300","400","700"]},{f:"Oxygen Mono",v:["400"]},{f:"PT Mono",v:["400"]},{f:"PT Sans",v:["400","400i","700","700italic"]},{f:"PT Sans Caption",v:["400","700"]},{f:"PT Sans Narrow",v:["400","700"]},{f:"PT Serif",v:["400","400i","700","700italic"]},{f:"PT Serif Caption",v:["400","400i"]},{f:"Pacifico",v:["400"]},{f:"Padauk",v:["400","700"]},{f:"Palanquin",v:["100","200","300","400","500","600","700"]},{f:"Palanquin Dark",v:["400","500","600","700"]},{f:"Pangolin",v:["400"]},{f:"Paprika",v:["400"]},{f:"Parisienne",v:["400"]},{f:"Passero One",v:["400"]},{f:"Passion One",v:["400","700","900"]},{f:"Pathway Gothic One",v:["400"]},{f:"Patrick Hand",v:["400"]},{f:"Patrick Hand SC",v:["400"]},{f:"Pattaya",v:["400"]},{f:"Patua One",v:["400"]},{f:"Pavanam",v:["400"]},{f:"Paytone One",v:["400"]},{f:"Peddana",v:["400"]},{f:"Peralta",v:["400"]},{f:"Permanent Marker",v:["400"]},{f:"Petit Formal Script",v:["400"]},{f:"Petrona",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Philosopher",v:["400","400i","700","700italic"]},{f:"Piedra",v:["400"]},{f:"Pinyon Script",v:["400"]},{f:"Pirata One",v:["400"]},{f:"Plaster",v:["400"]},{f:"Play",v:["400","700"]},{f:"Playball",v:["400"]},{f:"Playfair Display",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Playfair Display SC",v:["400","400i","700","700italic","900","900italic"]},{f:"Podkova",v:["400","500","600","700","800"]},{f:"Poiret One",v:["400"]},{f:"Poller One",v:["400"]},{f:"Poly",v:["400","400i"]},{f:"Pompiere",v:["400"]},{f:"Pontano Sans",v:["400"]},{f:"Poor Story",v:["400"]},{f:"Poppins",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Port Lligat Sans",v:["400"]},{f:"Port Lligat Slab",v:["400"]},{f:"Pragati Narrow",v:["400","700"]},{f:"Prata",v:["400"]},{f:"Preahvihear",v:["400"]},{f:"Press Start 2P",v:["400"]},{f:"Pridi",v:["200","300","400","500","600","700"]},{f:"Princess Sofia",v:["400"]},{f:"Prociono",v:["400"]},{f:"Prompt",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Prosto One",v:["400"]},{f:"Proza Libre",v:["400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Public Sans",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Puritan",v:["400","400i","700","700italic"]},{f:"Purple Purse",v:["400"]},{f:"Quando",v:["400"]},{f:"Quantico",v:["400","400i","700","700italic"]},{f:"Quattrocento",v:["400","700"]},{f:"Quattrocento Sans",v:["400","400i","700","700italic"]},{f:"Questrial",v:["400"]},{f:"Quicksand",v:["300","400","500","600","700"]},{f:"Quintessential",v:["400"]},{f:"Qwigley",v:["400"]},{f:"Racing Sans One",v:["400"]},{f:"Radley",v:["400","400i"]},{f:"Rajdhani",v:["300","400","500","600","700"]},{f:"Rakkas",v:["400"]},{f:"Raleway",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Raleway Dots",v:["400"]},{f:"Ramabhadra",v:["400"]},{f:"Ramaraja",v:["400"]},{f:"Rambla",v:["400","400i","700","700italic"]},{f:"Rammetto One",v:["400"]},{f:"Ranchers",v:["400"]},{f:"Rancho",v:["400"]},{f:"Ranga",v:["400","700"]},{f:"Rasa",v:["300","400","500","600","700"]},{f:"Rationale",v:["400"]},{f:"Ravi Prakash",v:["400"]},{f:"Recursive",v:["300","400","500","600","700","800","900"]},{f:"Red Hat Display",v:["400","400i","500","500italic","700","700italic","900","900italic"]},{f:"Red Hat Text",v:["400","400i","500","500italic","700","700italic"]},{f:"Red Rose",v:["300","400","700"]},{f:"Redressed",v:["400"]},{f:"Reem Kufi",v:["400"]},{f:"Reenie Beanie",v:["400"]},{f:"Revalia",v:["400"]},{f:"Rhodium Libre",v:["400"]},{f:"Ribeye",v:["400"]},{f:"Ribeye Marrow",v:["400"]},{f:"Righteous",v:["400"]},{f:"Risque",v:["400"]},{f:"Roboto",v:["100","100italic","300","300italic","400","400i","500","500italic","700","700italic","900","900italic"]},{f:"Roboto Condensed",v:["300","300italic","400","400i","700","700italic"]},{f:"Roboto Mono",v:["100","200","300","400","500","600","700","100italic","200italic","300italic","400i","500italic","600italic","700italic"]},{f:"Roboto Slab",v:["100","200","300","400","500","600","700","800","900"]},{f:"Rochester",v:["400"]},{f:"Rock Salt",v:["400"]},{f:"Rokkitt",v:["100","200","300","400","500","600","700","800","900"]},{f:"Romanesco",v:["400"]},{f:"Ropa Sans",v:["400","400i"]},{f:"Rosario",v:["300","400","500","600","700","300italic","400i","500italic","600italic","700italic"]},{f:"Rosarivo",v:["400","400i"]},{f:"Rouge Script",v:["400"]},{f:"Rowdies",v:["300","400","700"]},{f:"Rozha One",v:["400"]},{f:"Rubik",v:["300","400","500","600","700","800","900","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Rubik Mono One",v:["400"]},{f:"Ruda",v:["400","500","600","700","800","900"]},{f:"Rufina",v:["400","700"]},{f:"Ruge Boogie",v:["400"]},{f:"Ruluko",v:["400"]},{f:"Rum Raisin",v:["400"]},{f:"Ruslan Display",v:["400"]},{f:"Russo One",v:["400"]},{f:"Ruthie",v:["400"]},{f:"Rye",v:["400"]},{f:"Sacramento",v:["400"]},{f:"Sahitya",v:["400","700"]},{f:"Sail",v:["400"]},{f:"Saira",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Extra Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Semi Condensed",v:["100","200","300","400","500","600","700","800","900"]},{f:"Saira Stencil One",v:["400"]},{f:"Salsa",v:["400"]},{f:"Sanchez",v:["400","400i"]},{f:"Sancreek",v:["400"]},{f:"Sansita",v:["400","400i","700","700italic","800","800italic","900","900italic"]},{f:"Sarabun",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Sarala",v:["400","700"]},{f:"Sarina",v:["400"]},{f:"Sarpanch",v:["400","500","600","700","800","900"]},{f:"Satisfy",v:["400"]},{f:"Sawarabi Gothic",v:["400"]},{f:"Sawarabi Mincho",v:["400"]},{f:"Scada",v:["400","400i","700","700italic"]},{f:"Scheherazade",v:["400","700"]},{f:"Schoolbell",v:["400"]},{f:"Scope One",v:["400"]},{f:"Seaweed Script",v:["400"]},{f:"Secular One",v:["400"]},{f:"Sedgwick Ave",v:["400"]},{f:"Sedgwick Ave Display",v:["400"]},{f:"Sen",v:["400","700","800"]},{f:"Sevillana",v:["400"]},{f:"Seymour One",v:["400"]},{f:"Shadows Into Light",v:["400"]},{f:"Shadows Into Light Two",v:["400"]},{f:"Shanti",v:["400"]},{f:"Share",v:["400","400i","700","700italic"]},{f:"Share Tech",v:["400"]},{f:"Share Tech Mono",v:["400"]},{f:"Shojumaru",v:["400"]},{f:"Short Stack",v:["400"]},{f:"Shrikhand",v:["400"]},{f:"Siemreap",v:["400"]},{f:"Sigmar One",v:["400"]},{f:"Signika",v:["300","400","500","600","700"]},{f:"Signika Negative",v:["300","400","600","700"]},{f:"Simonetta",v:["400","400i","900","900italic"]},{f:"Single Day",v:["400"]},{f:"Sintony",v:["400","700"]},{f:"Sirin Stencil",v:["400"]},{f:"Six Caps",v:["400"]},{f:"Skranji",v:["400","700"]},{f:"Slabo 13px",v:["400"]},{f:"Slabo 27px",v:["400"]},{f:"Slackey",v:["400"]},{f:"Smokum",v:["400"]},{f:"Smythe",v:["400"]},{f:"Sniglet",v:["400","800"]},{f:"Snippet",v:["400"]},{f:"Snowburst One",v:["400"]},{f:"Sofadi One",v:["400"]},{f:"Sofia",v:["400"]},{f:"Solway",v:["300","400","500","700","800"]},{f:"Song Myung",v:["400"]},{f:"Sonsie One",v:["400"]},{f:"Sora",v:["100","200","300","400","500","600","700","800"]},{f:"Sorts Mill Goudy",v:["400","400i"]},{f:"Source Code Pro",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","900","900italic"]},{f:"Source Sans Pro",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900","900italic"]},{f:"Source Serif Pro",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900","900italic"]},{f:"Space Mono",v:["400","400i","700","700italic"]},{f:"Spartan",v:["100","200","300","400","500","600","700","800","900"]},{f:"Special Elite",v:["400"]},{f:"Spectral",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Spectral SC",v:["200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic"]},{f:"Spicy Rice",v:["400"]},{f:"Spinnaker",v:["400"]},{f:"Spirax",v:["400"]},{f:"Squada One",v:["400"]},{f:"Sree Krushnadevaraya",v:["400"]},{f:"Sriracha",v:["400"]},{f:"Srisakdi",v:["400","700"]},{f:"Staatliches",v:["400"]},{f:"Stalemate",v:["400"]},{f:"Stalinist One",v:["400"]},{f:"Stardos Stencil",v:["400","700"]},{f:"Stint Ultra Condensed",v:["400"]},{f:"Stint Ultra Expanded",v:["400"]},{f:"Stoke",v:["300","400"]},{f:"Strait",v:["400"]},{f:"Stylish",v:["400"]},{f:"Sue Ellen Francisco",v:["400"]},{f:"Suez One",v:["400"]},{f:"Sulphur Point",v:["300","400","700"]},{f:"Sumana",v:["400","700"]},{f:"Sunflower",v:["300","500","700"]},{f:"Sunshiney",v:["400"]},{f:"Supermercado One",v:["400"]},{f:"Sura",v:["400","700"]},{f:"Suranna",v:["400"]},{f:"Suravaram",v:["400"]},{f:"Suwannaphum",v:["400"]},{f:"Swanky and Moo Moo",v:["400"]},{f:"Syncopate",v:["400","700"]},{f:"Syne",v:["400","500","600","700","800"]},{f:"Tajawal",v:["200","300","400","500","700","800","900"]},{f:"Tangerine",v:["400","700"]},{f:"Taprom",v:["400"]},{f:"Tauri",v:["400"]},{f:"Taviraj",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Teko",v:["300","400","500","600","700"]},{f:"Telex",v:["400"]},{f:"Tenali Ramakrishna",v:["400"]},{f:"Tenor Sans",v:["400"]},{f:"Text Me One",v:["400"]},{f:"Thasadith",v:["400","400i","700","700italic"]},{f:"The Girl Next Door",v:["400"]},{f:"Tienne",v:["400","700","900"]},{f:"Tillana",v:["400","500","600","700","800"]},{f:"Timmana",v:["400"]},{f:"Tinos",v:["400","400i","700","700italic"]},{f:"Titan One",v:["400"]},{f:"Titillium Web",v:["200","200italic","300","300italic","400","400i","600","600italic","700","700italic","900"]},{f:"Tomorrow",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Trade Winds",v:["400"]},{f:"Trirong",v:["100","100italic","200","200italic","300","300italic","400","400i","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{f:"Trocchi",v:["400"]},{f:"Trochut",v:["400","400i","700"]},{f:"Trykker",v:["400"]},{f:"Tulpen One",v:["400"]},{f:"Turret Road",v:["200","300","400","500","700","800"]},{f:"Ubuntu",v:["300","300italic","400","400i","500","500italic","700","700italic"]},{f:"Ubuntu Condensed",v:["400"]},{f:"Ubuntu Mono",v:["400","400i","700","700italic"]},{f:"Ultra",v:["400"]},{f:"Uncial Antiqua",v:["400"]},{f:"Underdog",v:["400"]},{f:"Unica One",v:["400"]},{f:"UnifrakturCook",v:["700"]},{f:"UnifrakturMaguntia",v:["400"]},{f:"Unkempt",v:["400","700"]},{f:"Unlock",v:["400"]},{f:"Unna",v:["400","400i","700","700italic"]},{f:"VT323",v:["400"]},{f:"Vampiro One",v:["400"]},{f:"Varela",v:["400"]},{f:"Varela Round",v:["400"]},{f:"Varta",v:["300","400","500","600","700"]},{f:"Vast Shadow",v:["400"]},{f:"Vesper Libre",v:["400","500","700","900"]},{f:"Viaoda Libre",v:["400"]},{f:"Vibes",v:["400"]},{f:"Vibur",v:["400"]},{f:"Vidaloka",v:["400"]},{f:"Viga",v:["400"]},{f:"Voces",v:["400"]},{f:"Volkhov",v:["400","400i","700","700italic"]},{f:"Vollkorn",v:["400","500","600","700","800","900","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Vollkorn SC",v:["400","600","700","900"]},{f:"Voltaire",v:["400"]},{f:"Waiting for the Sunrise",v:["400"]},{f:"Wallpoet",v:["400"]},{f:"Walter Turncoat",v:["400"]},{f:"Warnes",v:["400"]},{f:"Wellfleet",v:["400"]},{f:"Wendy One",v:["400"]},{f:"Wire One",v:["400"]},{f:"Work Sans",v:["100","200","300","400","500","600","700","800","900","100italic","200italic","300italic","400i","500italic","600italic","700italic","800italic","900italic"]},{f:"Yanone Kaffeesatz",v:["200","300","400","500","600","700"]},{f:"Yantramanav",v:["100","300","400","500","700","900"]},{f:"Yatra One",v:["400"]},{f:"Yellowtail",v:["400"]},{f:"Yeon Sung",v:["400"]},{f:"Yeseva One",v:["400"]},{f:"Yesteryear",v:["400"]},{f:"Yrsa",v:["300","400","500","600","700"]},{f:"ZCOOL KuaiLe",v:["400"]},{f:"ZCOOL QingKe HuangYou",v:["400"]},{f:"ZCOOL XiaoWei",v:["400"]},{f:"Zeyada",v:["400"]},{f:"Zhi Mang Xing",v:["400"]},{f:"Zilla Slab",v:["300","300italic","400","400i","500","500italic","600","600italic","700","700italic"]},{f:"Zilla Slab Highlight",v:["400","700"]}]}},function(i,a){i.exports={kind:"webfonts#webfontList",items:[{id:"arial",label:"Arial",stack:"Arial, Helvetica Neue, Helvetica, sans-serif"},{id:"calibri",label:"Calibri",stack:"Calibri, Candara, Segoe, Segoe UI, Optima, Arial, sans-serif;"},{id:"consolas",label:"Consolas",stack:"Consolas, monaco, monospace"},{id:"courier-new",label:"Courier New",stack:"Courier New, Courier, Lucida Sans Typewriter, Lucida Typewriter, monospace"},{id:"helvetica",label:"Helvetica Neue",stack:"Helvetica Neue, Helvetica, Arial, sans-serif"},{id:"georgia",label:"Georgia",stack:"Georgia, Times, Times New Roman, serif"},{id:"futura",label:"Futura",stack:"Futura, Trebuchet MS, Arial, sans-serif"},{id:"lucida-grande",label:"Lucida Grande",stack:"Lucida Grande, Lucida Sans Unicode, Lucida Sans, Geneva, Verdana, sans-serif"},{id:"tahoma",label:"Tahoma",stack:"Tahoma, Verdana, Segoe, sans-serif"},{id:"times-new-roman",label:"Times New Roman",stack:"TimesNewRoman, Times New Roman, Times, Baskerville, Georgia, serif"},{id:"trebuchet",label:"Trebuchet MS",stack:"Trebuchet MS, Lucida Grande, Lucida Sans Unicode, Lucida Sans, Tahoma, sans-serif"},{id:"palatino",label:"Palatino",stack:"Palatino, Palatino Linotype, Palatino LT STD, Book Antiqua, Georgia, serif"},{id:"verdana",label:"Verdana",stack:"Verdana, Geneva, sans-serif;"}]}},function(i,a,t){"use strict";var e=wp.blocks.createBlock,l={from:[{type:"block",blocks:["core/paragraph"],transform:function(i){var a=i.content;return e("olympus-google-fonts/google-fonts",{content:a})}},{type:"block",blocks:["core/heading"],transform:function(i){var a=i.content,t=i.level;return e("olympus-google-fonts/google-fonts",{content:a,blockType:"h"+t})}}],to:[{type:"block",blocks:["core/paragraph"],transform:function(i){var a=i.content;return e("core/paragraph",{content:a})}}]};a.a=l}]);
blocks/init.php CHANGED
@@ -24,6 +24,7 @@ function olympus_google_fonts_block_js() {
24
  false
25
  );
26
  wp_localize_script( 'olympus-google-fonts-block-js', 'ogf_custom_fonts', ogf_custom_fonts() );
 
27
  }
28
 
29
  add_action( 'enqueue_block_editor_assets', 'olympus_google_fonts_block_js' );
24
  false
25
  );
26
  wp_localize_script( 'olympus-google-fonts-block-js', 'ogf_custom_fonts', ogf_custom_fonts() );
27
+ wp_localize_script( 'olympus-google-fonts-block-js', 'ogf_typekit_fonts', ogf_typekit_fonts() );
28
  }
29
 
30
  add_action( 'enqueue_block_editor_assets', 'olympus_google_fonts_block_js' );
blocks/src/google-fonts/edit.js CHANGED
@@ -24,7 +24,6 @@ class GoogleFontsBlock extends Component {
24
  getFontsForSelect() {
25
 
26
  const customFonts = Object.values( ogf_custom_fonts ).map( ( font ) => {
27
-
28
  return {
29
  value: font.id,
30
  label: font.label,
@@ -37,6 +36,19 @@ class GoogleFontsBlock extends Component {
37
  disabled: true,
38
  });
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  const systemFonts = systemFontsJson.items.map( ( font ) => {
41
  const label = font.label;
42
  const value = font.id;
@@ -53,8 +65,6 @@ class GoogleFontsBlock extends Component {
53
  disabled: true,
54
  });
55
 
56
- const combinedFonts = customFonts.concat( systemFonts );
57
-
58
  const googleFonts = fontsJson.items.map( ( font ) => {
59
  const label = font.f;
60
  const value = label.replace( /\s+/g, '+' );
@@ -71,7 +81,8 @@ class GoogleFontsBlock extends Component {
71
  disabled: true,
72
  });
73
 
74
- return combinedFonts.concat( googleFonts );
 
75
  }
76
 
77
  searchFonts( nameKey, myArray ){
@@ -84,7 +95,6 @@ class GoogleFontsBlock extends Component {
84
 
85
  isCustomFont( fontID ) {
86
  const searchResults = this.searchFonts( fontID, Object.values( ogf_custom_fonts ) );
87
-
88
  if ( typeof searchResults === 'object' ) {
89
  return true;
90
  }
@@ -101,6 +111,15 @@ class GoogleFontsBlock extends Component {
101
  return false;
102
  }
103
 
 
 
 
 
 
 
 
 
 
104
  /**
105
  * Check if a font weight is italic.
106
  *
@@ -213,7 +232,7 @@ class GoogleFontsBlock extends Component {
213
  },
214
  ];
215
 
216
- if ( ! this.isSystemFont( fontID ) && ! this.isCustomFont( fontID ) ) {
217
  const fontObject = this.getFontObject( fontID.replace( /\+/g, ' ' ) );
218
  variantOptions = this.getVariantsForSelect( fontObject );
219
  this.addGoogleFontToHead( fontID, fontObject );
24
  getFontsForSelect() {
25
 
26
  const customFonts = Object.values( ogf_custom_fonts ).map( ( font ) => {
 
27
  return {
28
  value: font.id,
29
  label: font.label,
36
  disabled: true,
37
  });
38
 
39
+ const typekitFonts = Object.values( ogf_typekit_fonts ).map( ( font ) => {
40
+ return {
41
+ value: font.id,
42
+ label: font.label,
43
+ };
44
+ } );
45
+
46
+ typekitFonts.unshift({
47
+ value: '1',
48
+ label: __( '- Typekit Fonts -', 'olympus-google-fonts' ),
49
+ disabled: true,
50
+ });
51
+
52
  const systemFonts = systemFontsJson.items.map( ( font ) => {
53
  const label = font.label;
54
  const value = font.id;
65
  disabled: true,
66
  });
67
 
 
 
68
  const googleFonts = fontsJson.items.map( ( font ) => {
69
  const label = font.f;
70
  const value = label.replace( /\s+/g, '+' );
81
  disabled: true,
82
  });
83
 
84
+ const combinedFonts = customFonts.concat( typekitFonts, systemFonts, googleFonts );
85
+ return combinedFonts;
86
  }
87
 
88
  searchFonts( nameKey, myArray ){
95
 
96
  isCustomFont( fontID ) {
97
  const searchResults = this.searchFonts( fontID, Object.values( ogf_custom_fonts ) );
 
98
  if ( typeof searchResults === 'object' ) {
99
  return true;
100
  }
111
  return false;
112
  }
113
 
114
+ isTypekitFont( fontID ) {
115
+ const searchResults = this.searchFonts( fontID, Object.values( ogf_typekit_fonts ) );
116
+ if ( typeof searchResults === 'object' ) {
117
+ return true;
118
+ }
119
+
120
+ return false;
121
+ }
122
+
123
  /**
124
  * Check if a font weight is italic.
125
  *
232
  },
233
  ];
234
 
235
+ if ( ! this.isTypekitFont( fontID ) && ! this.isSystemFont( fontID ) && ! this.isCustomFont( fontID ) ) {
236
  const fontObject = this.getFontObject( fontID.replace( /\+/g, ' ' ) );
237
  variantOptions = this.getVariantsForSelect( fontObject );
238
  this.addGoogleFontToHead( fontID, fontObject );
changelog.txt CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  = 2.4.0 =
2
 
3
  * Increase max font size in Gutenberg to 150px
1
+ = 2.5.0 =
2
+
3
+ * Add support for Adobe Fonts / Typekit
4
+
5
  = 2.4.0 =
6
 
7
  * Increase max font size in Gutenberg to 150px
class-olympus-google-fonts.php CHANGED
@@ -52,6 +52,9 @@ class Olympus_Google_Fonts {
52
  require_once OGF_DIR_PATH . 'includes/customizer/settings.php';
53
  require_once OGF_DIR_PATH . 'includes/customizer/output-css.php';
54
 
 
 
 
55
  // Required files for the Gutenberg editor.
56
  require_once OGF_DIR_PATH . 'includes/gutenberg/output-css.php';
57
 
@@ -128,6 +131,7 @@ class Olympus_Google_Fonts {
128
  wp_localize_script( 'ogf-customize-controls', 'ogf_font_array', ogf_fonts_array() );
129
  wp_localize_script( 'ogf-customize-controls', 'ogf_system_fonts', ogf_system_fonts() );
130
  wp_localize_script( 'ogf-customize-controls', 'ogf_custom_fonts', ogf_custom_fonts() );
 
131
  wp_localize_script( 'ogf-customize-controls', 'ogf_font_variants', ogf_font_variants() );
132
  }
133
 
@@ -143,6 +147,7 @@ class Olympus_Google_Fonts {
143
  wp_localize_script( 'ogf-customize-preview', 'ogf_elements', $elements );
144
  wp_localize_script( 'ogf-customize-preview', 'ogf_system_fonts', ogf_system_fonts() );
145
  wp_localize_script( 'ogf-customize-preview', 'ogf_custom_fonts', ogf_custom_fonts() );
 
146
 
147
  }
148
 
52
  require_once OGF_DIR_PATH . 'includes/customizer/settings.php';
53
  require_once OGF_DIR_PATH . 'includes/customizer/output-css.php';
54
 
55
+ // Required files for the Typekit integration.
56
+ require_once OGF_DIR_PATH . 'includes/class-ogf-typekit.php';
57
+
58
  // Required files for the Gutenberg editor.
59
  require_once OGF_DIR_PATH . 'includes/gutenberg/output-css.php';
60
 
131
  wp_localize_script( 'ogf-customize-controls', 'ogf_font_array', ogf_fonts_array() );
132
  wp_localize_script( 'ogf-customize-controls', 'ogf_system_fonts', ogf_system_fonts() );
133
  wp_localize_script( 'ogf-customize-controls', 'ogf_custom_fonts', ogf_custom_fonts() );
134
+ wp_localize_script( 'ogf-customize-controls', 'ogf_typekit_fonts', ogf_typekit_fonts() );
135
  wp_localize_script( 'ogf-customize-controls', 'ogf_font_variants', ogf_font_variants() );
136
  }
137
 
147
  wp_localize_script( 'ogf-customize-preview', 'ogf_elements', $elements );
148
  wp_localize_script( 'ogf-customize-preview', 'ogf_system_fonts', ogf_system_fonts() );
149
  wp_localize_script( 'ogf-customize-preview', 'ogf_custom_fonts', ogf_custom_fonts() );
150
+ wp_localize_script( 'ogf-customize-preview', 'ogf_typekit_fonts', ogf_typekit_fonts() );
151
 
152
  }
153
 
includes/class-ogf-fonts.php CHANGED
@@ -135,7 +135,7 @@ class OGF_Fonts {
135
  }
136
 
137
  foreach ( $this->choices as $choice ) {
138
- if ( ! ogf_is_system_font( $choice ) && ! ogf_is_custom_font( $choice ) ) {
139
  return true;
140
  }
141
  }
135
  }
136
 
137
  foreach ( $this->choices as $choice ) {
138
+ if ( ! ogf_is_system_font( $choice ) && ! ogf_is_custom_font( $choice ) && ! ogf_is_typekit_font( $choice ) ) {
139
  return true;
140
  }
141
  }
includes/class-ogf-typekit.php ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Fonts Plugin Typekit Addon.
4
+ *
5
+ * @package olympus-google-fonts
6
+ */
7
+
8
+ /**
9
+ * Create the admin pages.
10
+ */
11
+ class OGF_Typekit {
12
+
13
+ /**
14
+ * Start up
15
+ */
16
+ public function __construct() {
17
+ add_action( 'admin_menu', array( $this, 'add_settings_page' ) );
18
+ add_action( 'admin_init', array( $this, 'register_settings' ) );
19
+ add_action( 'admin_head', array( $this, 'get_kits' ) );
20
+ add_action( 'admin_head', array( $this, 'css_styles' ) );
21
+ add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_css' ) );
22
+ add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_css' ) );
23
+ }
24
+
25
+ /**
26
+ * Add submenu page to Fonts Plugin menu.
27
+ */
28
+ public function add_settings_page() {
29
+ add_submenu_page(
30
+ 'fonts-plugin',
31
+ __( 'Adobe Fonts (Typekit)', 'olympus-google-fonts' ),
32
+ __( 'Adobe Fonts (Typekit)', 'olympus-google-fonts' ),
33
+ 'manage_options',
34
+ 'fonts-plugin-typekit',
35
+ array( $this, 'render_settings_page' ),
36
+ );
37
+ }
38
+
39
+ /**
40
+ * Register the settings and sections.
41
+ */
42
+ public function register_settings() {
43
+ register_setting( 'fonts-plugin', 'fp-typekit' );
44
+
45
+ add_settings_section( 'section-1', __( 'Configuration', 'olympus-google-fonts' ), array( $this, 'render_config_section' ), 'fonts-plugin-typekit' );
46
+ add_settings_section( 'section-2', __( 'Results', 'fonts-plugin-typekit' ), array( $this, 'render_results_section' ), 'fonts-plugin-typekit' );
47
+ add_settings_field( 'api_key', __( 'API Key', 'olympus-google-fonts' ), array( $this, 'render_settings' ), 'fonts-plugin-typekit', 'section-1' );
48
+ }
49
+
50
+ /**
51
+ * Render the Typekit submenu page.
52
+ */
53
+ public function render_settings_page() {
54
+ ?>
55
+ <h2><?php esc_html_e( 'Adobe Fonts (Typekit) Configuration', 'olympus-google-fonts' ); ?></h2>
56
+ <form action="options.php" method="post">
57
+ <?php
58
+ settings_fields( 'fonts-plugin' );
59
+ do_settings_sections( 'fonts-plugin-typekit' );
60
+ if ( get_option( 'fp-typekit-data', false ) ) {
61
+ echo '<a class="button button-primary" href="' . esc_url( admin_url( 'admin.php?page=fonts-plugin-typekit&action=reset' ) ) . '">' . esc_html__( 'Refresh Fonts', 'olympus-google-fonts' ) . '</a>';
62
+ }
63
+ ?>
64
+ </form>
65
+ <?php
66
+ }
67
+
68
+ /**
69
+ * Render the settings intro section of the Typekit page.
70
+ */
71
+ public function render_config_section() {
72
+ _e( '<p>You can retrieve your Adobe Fonts API Key here: <a target="_blank" href="https://fonts.adobe.com/account/tokens">https://fonts.adobe.com/account/tokens</a></p>', 'olympus-google-fonts' );
73
+ }
74
+
75
+ /**
76
+ * Render the Typekit settings.
77
+ */
78
+ public function render_settings() {
79
+ $settings = (array) get_option( 'fp-typekit' );
80
+ $value = $settings['api_key'];
81
+
82
+ echo '<input type="text" name="fp-typekit[api_key]" value="' . esc_attr( $value ) . '" />';
83
+ echo '<input name="submit" class="button button-primary" type="submit" value="' . esc_attr__( 'Save', 'olympus-google-fonts' ) . '" />';
84
+ }
85
+
86
+ /**
87
+ * Render the results section of the admin page.
88
+ */
89
+ public function render_results_section() {
90
+ echo '<p>' . esc_html__( 'The following data was retrieved from the Typekit API:', 'olympus-google-fonts' ) . '</p>';
91
+ echo '<ul class="fp-typekit-results">';
92
+ $kits = get_option( 'fp-typekit-data' );
93
+ foreach ( $kits as $id => $kit ) {
94
+ echo '<li><strong>' . esc_html__( 'Kit: ', 'olympus-google-fonts' ) . '</strong>' . esc_attr( $id ) . '</li><ul>';
95
+ foreach ( $kit['families'] as $family ) {
96
+ echo '<li><strong>' . esc_html__( 'Font Family: ', 'olympus-google-fonts' ) . '</strong>' . esc_attr( $family['label'] ) . '</li>';
97
+ }
98
+ echo '</ul>';
99
+ }
100
+ echo '</ul>';
101
+ }
102
+
103
+ /**
104
+ * Quickly add inline CSS styles.
105
+ */
106
+ public function css_styles() {
107
+ if ( get_current_screen()->id !== 'fonts-plugin_page_fonts-plugin-typekit' ) {
108
+ return;
109
+ }
110
+ echo '<style>.fp-typekit-results > ul {padding: 0 0 .5rem .5rem}</style>';
111
+ }
112
+
113
+ /**
114
+ * Get kits from Typekit API.
115
+ */
116
+ public function get_kits() {
117
+
118
+ if ( isset( $_GET['action'] ) && $_GET['action'] === 'reset' ) {
119
+ update_option( 'fp-typekit-data', false );
120
+ }
121
+
122
+ if ( get_current_screen()->id !== 'fonts-plugin_page_fonts-plugin-typekit' ) {
123
+ return;
124
+ }
125
+
126
+ if ( get_option( 'fp-typekit-data', false ) ) {
127
+ return;
128
+ }
129
+
130
+ $settings = get_option( 'fp-typekit', false );
131
+ $api_key = $settings['api_key'];
132
+ $url = 'https://typekit.com/api/v1/json/kits/';
133
+ $curl_args = array();
134
+ $response = wp_remote_request( $url . '?token=' . esc_attr( $api_key ), $curl_args );
135
+ $response_body = json_decode( wp_remote_retrieve_body( $response ) );
136
+ $kits = array();
137
+
138
+ if ( is_array( $response_body->kits ) ) {
139
+ // loop through the kits object.
140
+ foreach ( $response_body->kits as $kit ) {
141
+ // perform an API request for the individual kit.
142
+ $data = $this->get_kit_from_api( $api_key, $kit->id );
143
+ // Enable kits by default.
144
+ $kits[ $kit->id ]['enabled'] = true;
145
+ // loop through the kit and standardize the data.
146
+ foreach ( $data->families as $family ) {
147
+ $kits[ $kit->id ]['families'][] = array(
148
+ 'label' => $family->name,
149
+ 'id' => $family->slug,
150
+ 'variants' => array_map( array( $this, 'standardize_variant_names' ), $family->variations ),
151
+ 'stack' => $family->css_stack,
152
+ );
153
+ }
154
+ }
155
+ }
156
+ // Save the results so we don't need to query the API again.
157
+ update_option( 'fp-typekit-data', $kits );
158
+ }
159
+
160
+ /**
161
+ * Get kit data from API.
162
+ *
163
+ * @param string $api_key The API key.
164
+ * @param string $kit_id The Kit ID we are looking for.
165
+ */
166
+ public function get_kit_from_api( $api_key, $kit_id ) {
167
+ $url = 'https://typekit.com/api/v1/json/kits/' . esc_attr( $kit_id ) . '?token=' . esc_attr( $api_key );
168
+ $curl_args = array();
169
+ $response = wp_remote_request( $url, $curl_args );
170
+ $response_body = json_decode( wp_remote_retrieve_body( $response ) );
171
+ return $response_body->kit;
172
+ }
173
+
174
+ /**
175
+ * Use the Fonts Plugin naming convention instead of Typekit's.
176
+ *
177
+ * @param string $variant The variant to standarize.
178
+ */
179
+ public function standardize_variant_names( $variant ) {
180
+ $variants_key = array(
181
+ 'n1' => '100',
182
+ 'n2' => '200',
183
+ 'n3' => '300',
184
+ 'n4' => '400',
185
+ 'n5' => '500',
186
+ 'n6' => '600',
187
+ 'n7' => '700',
188
+ 'n8' => '800',
189
+ 'n9' => '900',
190
+ 'i1' => '100i',
191
+ 'i2' => '200i',
192
+ 'i3' => '300i',
193
+ 'i4' => '400i',
194
+ 'i5' => '500i',
195
+ 'i6' => '600i',
196
+ 'i7' => '700i',
197
+ 'i8' => '800i',
198
+ 'i9' => '900i',
199
+ );
200
+
201
+ if ( array_key_exists( $variant, $variants_key ) ) {
202
+ return $variants_key[ $variant ];
203
+ } else {
204
+ return $variant;
205
+ }
206
+ }
207
+
208
+ /**
209
+ * Get Typekit fonts array.
210
+ */
211
+ public static function get_fonts() {
212
+ $fonts = array();
213
+ $kits = get_option( 'fp-typekit-data' );
214
+ foreach ( $kits as $kit ) {
215
+ foreach ( $kit['families'] as $family ) {
216
+ $fonts[ 'tk-' . $family['id'] ] = array(
217
+ 'id' => $family['id'],
218
+ 'label' => $family['label'],
219
+ 'variants' => $family['variants'],
220
+ 'stack' => $family['stack'],
221
+ );
222
+ }
223
+ }
224
+ return $fonts;
225
+ }
226
+
227
+ /**
228
+ * Enqueue typekit CSS files.
229
+ */
230
+ public function enqueue_css() {
231
+ $typekit_data = get_option( 'fp-typekit-data' );
232
+
233
+ foreach ( $typekit_data as $id => $values ) {
234
+ wp_enqueue_style( 'typekit-' . $id, 'https://use.typekit.com/' . $id . '.css', array(), OGF_VERSION );
235
+ }
236
+ }
237
+
238
+ }
239
+
240
+ new OGF_Typekit();
includes/customizer/controls/class-ogf-customize-typography-control.php CHANGED
@@ -134,6 +134,12 @@ class OGF_Customize_Typography_Control extends WP_Customize_Control {
134
  <option value="cf-{{ font_id }}" <# if ( font_id === data.family.value ) { #> selected="selected" <# } #>>{{ font_data.label }}</option>
135
  <# } ) #>
136
  <# } #>
 
 
 
 
 
 
137
  <option disabled><?php esc_html_e( '- System Fonts -', 'olympus-google-fonts' ); ?></option>
138
  <# _.each( ogf_system_fonts, function( font_data, font_id ) { #>
139
  <option value="sf-{{ font_id }}" <# if ( font_id === data.family.value ) { #> selected="selected" <# } #>>{{ font_data.label }}</option>
134
  <option value="cf-{{ font_id }}" <# if ( font_id === data.family.value ) { #> selected="selected" <# } #>>{{ font_data.label }}</option>
135
  <# } ) #>
136
  <# } #>
137
+ <# if ( ! _.isEmpty( ogf_typekit_fonts ) ) { #>
138
+ <option disabled><?php esc_html_e( '- Typekit Fonts -', 'olympus-google-fonts' ); ?></option>
139
+ <# _.each( ogf_typekit_fonts, function( font_data, font_id ) { #>
140
+ <option value="{{ font_id }}" <# if ( font_id === data.family.value ) { #> selected="selected" <# } #>>{{ font_data.label }}</option>
141
+ <# } ) #>
142
+ <# } #>
143
  <option disabled><?php esc_html_e( '- System Fonts -', 'olympus-google-fonts' ); ?></option>
144
  <# _.each( ogf_system_fonts, function( font_data, font_id ) { #>
145
  <option value="sf-{{ font_id }}" <# if ( font_id === data.family.value ) { #> selected="selected" <# } #>>{{ font_data.label }}</option>
includes/customizer/output-css.php CHANGED
@@ -206,6 +206,13 @@ function ogf_build_font_stack( $font_id ) {
206
  if ( array_key_exists( $font_id, $custom_fonts ) ) {
207
  return $custom_fonts[ $font_id ]['stack'];
208
  }
 
 
 
 
 
 
 
209
  } else {
210
 
211
  $google_fonts = ogf_fonts_array();
206
  if ( array_key_exists( $font_id, $custom_fonts ) ) {
207
  return $custom_fonts[ $font_id ]['stack'];
208
  }
209
+ } elseif ( strpos( $font_id, 'tk-' ) !== false ) {
210
+
211
+ $typekit_fonts = ogf_typekit_fonts();
212
+
213
+ if ( array_key_exists( $font_id, $typekit_fonts ) ) {
214
+ return $typekit_fonts[ $font_id ]['stack'];
215
+ }
216
  } else {
217
 
218
  $google_fonts = ogf_fonts_array();
includes/functions.php CHANGED
@@ -56,7 +56,7 @@ function ogf_get_elements() {
56
  'label' => esc_html__( 'Site Title Typography', 'olympus-google-fonts' ),
57
  'description' => esc_html__( 'Select and configure the font for your site title.', 'olympus-google-fonts' ),
58
  'section' => 'ogf_advanced__branding',
59
- 'selectors' => '#site-title, .site-title, #site-title a, .site-title a, #logo, #logo a, .logo, .logo a',
60
  ),
61
  'ogf_site_description' => array(
62
  'label' => esc_html__( 'Site Description Typography', 'olympus-google-fonts' ),
@@ -208,6 +208,15 @@ function ogf_custom_fonts() {
208
 
209
  }
210
 
 
 
 
 
 
 
 
 
 
211
 
212
  /**
213
  * Return a array of system fonts.
@@ -332,7 +341,7 @@ function ogf_font_variants() {
332
  function ogf_is_system_font( $font_id ) {
333
 
334
  if ( ! is_string( $font_id ) ) {
335
- return;
336
  }
337
 
338
  if ( strpos( $font_id, 'sf-' ) === 0 ) {
@@ -349,7 +358,7 @@ function ogf_is_system_font( $font_id ) {
349
  function ogf_is_custom_font( $font_id ) {
350
 
351
  if ( ! is_string( $font_id ) ) {
352
- return;
353
  }
354
 
355
  if ( strpos( $font_id, 'cf-' ) === 0 ) {
@@ -358,6 +367,23 @@ function ogf_is_custom_font( $font_id ) {
358
  return false;
359
  }
360
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
361
  /**
362
  * Check if a font is a Google font.
363
  *
@@ -366,7 +392,7 @@ function ogf_is_custom_font( $font_id ) {
366
  function ogf_is_google_font( $font_id ) {
367
 
368
  if ( ! is_string( $font_id ) ) {
369
- return;
370
  }
371
 
372
  if ( array_key_exists( $font_id, OGF_Fonts::$google_fonts ) ) {
56
  'label' => esc_html__( 'Site Title Typography', 'olympus-google-fonts' ),
57
  'description' => esc_html__( 'Select and configure the font for your site title.', 'olympus-google-fonts' ),
58
  'section' => 'ogf_advanced__branding',
59
+ 'selectors' => '#site-title, .site-title, #site-title a, .site-title a, #site-logo, #site-logo a, #logo, #logo a, .logo, .logo a',
60
  ),
61
  'ogf_site_description' => array(
62
  'label' => esc_html__( 'Site Description Typography', 'olympus-google-fonts' ),
208
 
209
  }
210
 
211
+ /**
212
+ * Return a array of custom fonts.
213
+ */
214
+ function ogf_typekit_fonts() {
215
+
216
+ return OGF_Typekit::get_fonts();
217
+
218
+ }
219
+
220
 
221
  /**
222
  * Return a array of system fonts.
341
  function ogf_is_system_font( $font_id ) {
342
 
343
  if ( ! is_string( $font_id ) ) {
344
+ return false;
345
  }
346
 
347
  if ( strpos( $font_id, 'sf-' ) === 0 ) {
358
  function ogf_is_custom_font( $font_id ) {
359
 
360
  if ( ! is_string( $font_id ) ) {
361
+ return false;
362
  }
363
 
364
  if ( strpos( $font_id, 'cf-' ) === 0 ) {
367
  return false;
368
  }
369
 
370
+ /**
371
+ * Check if a font is a Typekit font (not Google Font).
372
+ *
373
+ * @param string $font_id The ID of the font to check.
374
+ */
375
+ function ogf_is_typekit_font( $font_id ) {
376
+
377
+ if ( ! is_string( $font_id ) ) {
378
+ return false;
379
+ }
380
+
381
+ if ( strpos( $font_id, 'tk-' ) === 0 ) {
382
+ return true;
383
+ }
384
+ return false;
385
+ }
386
+
387
  /**
388
  * Check if a font is a Google font.
389
  *
392
  function ogf_is_google_font( $font_id ) {
393
 
394
  if ( ! is_string( $font_id ) ) {
395
+ return false;
396
  }
397
 
398
  if ( array_key_exists( $font_id, OGF_Fonts::$google_fonts ) ) {
olympus-google-fonts.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 900+ font choices.
8
- * Version: 2.4.0
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
@@ -19,7 +19,7 @@
19
  */
20
 
21
  if ( ! defined( 'OGF_VERSION' ) ) {
22
- define( 'OGF_VERSION', '2.4.0' );
23
  }
24
 
25
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
5
  * Plugin Name: Fonts Plugin | Google Fonts Typography
6
  * Plugin URI: https://wordpress.org/plugins/olympus-google-fonts/
7
  * Description: The easiest to use Google Fonts typography plugin. No coding required. 900+ font choices.
8
+ * Version: 2.5.0
9
  * Author: Fonts Plugin
10
  * Author URI: https://fontsplugin.com/?utm_source=wporg&utm_medium=readme&utm_campaign=description
11
  * Text Domain: olympus-google-fonts
19
  */
20
 
21
  if ( ! defined( 'OGF_VERSION' ) ) {
22
+ define( 'OGF_VERSION', '2.5.0' );
23
  }
24
 
25
  if ( ! defined( 'OGF_DIR_PATH' ) ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://fontsplugin.com/#pricing
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
  License: GPLv2 or later
8
- Stable tag: 2.4.0
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11
 
5
  Requires at least: 4.0
6
  Tested up to: 5.6
7
  License: GPLv2 or later
8
+ Stable tag: 2.5.0
9
 
10
  The easiest to use Google Fonts Typography Plugin. No coding required. 900+ font choices.
11