{"id":15038,"date":"2017-02-15T13:21:25","date_gmt":"2017-02-15T12:21:25","guid":{"rendered":"https:\/\/www.adventori.com\/fr\/?p=15038"},"modified":"2018-01-18T11:38:03","modified_gmt":"2018-01-18T10:38:03","slug":"personnaliser-la-police","status":"publish","type":"post","link":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/","title":{"rendered":"PERSONNALISER LA POLICE"},"content":{"rendered":"<a style=\"color: grey;\" href=\"\/?page_id=11761\">Documentation DCO Enabler -> <\/a><a style=\"color: grey;\" href=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/\">ENABLER ADOBE ANIMATE CC -> <\/a><a style=\"color: grey;\" href=\"\/?p=15038\">PERSONNALISER LA POLICE<\/a>\r\n<h3>Personnalisation de la police web \u00a0:\u00a0<\/h3><p>Adobe Animate cc vous permet de g\u00e9rer les polices web avec Adobe typeKit et Google Fonts.<\/p><p>N\u00e9anmoins pour une campagne publicitaire digitale, nous d\u00e9conseillons d&rsquo;appeler une police en ligne (probl\u00e8mes de s\u00e9curit\u00e9, scalabilit\u00e9 &#8230;) .<\/p><p>\r\nNous conseillons \u00e9galement de ne pas avoir des polices trop lourdes (poids conseill\u00e9 &lt; 50 ko) et de privil\u00e9gier le chargement de votre police en local.<\/p><p>Gr\u00e2ce \u00e0 librairie PreloadJs int\u00e9gr\u00e9e dans Animate cc, nous pouvons pr\u00e9charger les fichiers de polices en local avant le lancement de la banni\u00e8re.<\/p><p><strong>Exporter<\/strong> votre Template html (Param\u00e8tre de publication-&gt;avanc\u00e9-&gt;exporter) , \u00e9diter le Template , ajouter le code ci-dessous juste apr\u00e8s la fonction <strong>init()<\/strong><\/p>\r\n<p>La variable queue correspond \u00e0 la file d&rsquo;attente de chargement de vos \u00e9l\u00e9ments graphiques. Ajoutez votre fichier .css r\u00e9f\u00e9ren\u00e7ant vos nouvelles polices\u00a0<\/p>\r\n<pre>function init() {\r\n<label style=\"color: red;\">var queue = new createjs.LoadQueue(false);\r\nqueue.loadManifest([{id:'1',src:'font.css'}]);<br \/><\/label>\r\n............<br \/>............<br \/>}<\/pre>\r\n\r\n<p>Une fois cette \u00e9tape terminer , recharger le Template Html\u00a0 (Param\u00e8tre de publication-&gt;avanc\u00e9-&gt;importer nouveau)\u00a0<\/p><p>Dans le fichier .css, renseignez le chemin de vos polices :\u00a0<\/p>\r\n<pre>@font-face {\r\n    font-family: 'FrancoisOne-Regular';\r\n    src: url('fonts\/FrancoisOne-Regular.ttf');\r\n    font-weight: normal;\r\n    font-style: normal;\r\n    color: #114454;\r\n}\r\n@font-face {\r\n    font-family: 'Covered By Your Grace';\r\n    src: url('fonts\/CoveredByYourGrace.ttf');\r\n    color: #5EBEBB;\r\n}\r\n@font-face {\r\n    font-family: 'JosefinSlab-Italic';\r\n    src: url('fonts\/JosefinSlab-Italic.ttf');\r\n    font-weight: italic;\r\n    font-style: normal;\r\n    color: #EC6A6D;\r\n}<\/pre><p>Une fois les polices charg\u00e9es, vous pouvez appliquer la police personnalis\u00e9e au(x) textField(s) :<\/p>\r\n<pre>ADventori.Display.<strong>setFont<\/strong>(this.textField,<label style=\"color: red;\">'FrancoisOne-Regular'<\/label>);\r\n<\/pre>\r\n<p>\r\n<\/p><p>Vous pouvez \u00e9galement ajouter le nom de votre police aux m\u00e9thodes d&rsquo;ajout de texte :<\/p><p>\r\n<\/p><pre>ADventori.Display.<strong>setText<\/strong>(this.textField,ADventori.data.wording,<label style=\"color: red;\">'FrancoisOne-Regular'<\/label>);\r\nADventori.Display.<strong>adaptText<\/strong>(this.textField,14,200,200,<label style=\"color: red;\">'Covered By Your Grace'<\/label>);<br \/>ADventori.Display.<strong>setAndAdaptText<\/strong>(this.textField,ADventori.data.wording,14,200,200,<label style=\"color: red;\">'JosefinSlab-Italic'<\/label>);\r\n<\/pre><p>\r\n<\/p>\r\n<p>R\u00e9sultat :<\/p>\r\n\r\n<iframe loading=\"lazy\" width=\"300px\" height=\"250px\" scrolling=\"no\" src=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/fontManage.html\" frameborder=\"no\" allowtransparency=\"true\" allowfullscreen=\"allowfullscreen\">\r\n<\/iframe>\r\n\r\n<p style=\"text-align: right;\"><a href=\"\/\/adventori.com\/lp\/enabler\/templates\/exemple_crea_animate\/fontManage.zip\"><button class=\"btn btn-primary\">T\u00e9l\u00e9chargez l&rsquo;exemple<\/button><\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Int\u00e9grer vos polices locales<\/p>\n","protected":false},"author":11,"featured_media":1812,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[257],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PERSONNALISER LA POLICE | ADventori<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PERSONNALISER LA POLICE | ADventori\" \/>\n<meta property=\"og:description\" content=\"Int\u00e9grer vos polices locales\" \/>\n<meta property=\"og:url\" content=\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/\" \/>\n<meta property=\"og:site_name\" content=\"ADventori\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-15T12:21:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-18T10:38:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/v4.adventori.com\/media\/native-ads.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"540\" \/>\n\t<meta property=\"og:image:height\" content=\"410\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@adventori\" \/>\n<meta name=\"twitter:site\" content=\"@adventori\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ismail Azdad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/v4.adventori.com\/#organization\",\"name\":\"ADventori\",\"url\":\"https:\/\/v4.adventori.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/adventori\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\",\"url\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"contentUrl\":\"\/media\/Large_Logo-ADventori_Couleur_2015.png\",\"width\":400,\"height\":133,\"caption\":\"ADventori\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/v4.adventori.com\/#website\",\"url\":\"https:\/\/v4.adventori.com\/\",\"name\":\"ADventori\",\"description\":\"LESS ADS, MORE EFFICIENT ADS\",\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/v4.adventori.com\/search\/{search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"fr-FR\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"fr-FR\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage\",\"url\":\"https:\/\/v4.adventori.com\/media\/native-ads.jpg\",\"contentUrl\":\"https:\/\/v4.adventori.com\/media\/native-ads.jpg\",\"width\":540,\"height\":410},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage\",\"url\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/\",\"name\":\"PERSONNALISER LA POLICE | ADventori\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage\"},\"datePublished\":\"2017-02-15T12:21:25+00:00\",\"dateModified\":\"2018-01-18T10:38:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#breadcrumb\"},\"inLanguage\":\"fr-FR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/v4.adventori.com\/fr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PERSONNALISER LA POLICE\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage\"},\"author\":{\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\"},\"headline\":\"PERSONNALISER LA POLICE\",\"datePublished\":\"2017-02-15T12:21:25+00:00\",\"dateModified\":\"2018-01-18T10:38:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage\"},\"wordCount\":229,\"publisher\":{\"@id\":\"https:\/\/v4.adventori.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/v4.adventori.com\/media\/native-ads.jpg\",\"articleSection\":[\"DYNAMISATION DU TEXTE\"],\"inLanguage\":\"fr-FR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564\",\"name\":\"Ismail Azdad\",\"sameAs\":[\"https:\/\/www.adventori.com\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PERSONNALISER LA POLICE | ADventori","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/","og_locale":"fr_FR","og_type":"article","og_title":"PERSONNALISER LA POLICE | ADventori","og_description":"Int\u00e9grer vos polices locales","og_url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/","og_site_name":"ADventori","article_published_time":"2017-02-15T12:21:25+00:00","article_modified_time":"2018-01-18T10:38:03+00:00","og_image":[{"width":540,"height":410,"url":"https:\/\/v4.adventori.com\/media\/native-ads.jpg","type":"image\/jpeg"}],"twitter_card":"summary","twitter_creator":"@adventori","twitter_site":"@adventori","twitter_misc":{"Written by":"Ismail Azdad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/v4.adventori.com\/#organization","name":"ADventori","url":"https:\/\/v4.adventori.com\/","sameAs":["https:\/\/twitter.com\/adventori"],"logo":{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/","url":"\/media\/Large_Logo-ADventori_Couleur_2015.png","contentUrl":"\/media\/Large_Logo-ADventori_Couleur_2015.png","width":400,"height":133,"caption":"ADventori"},"image":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/v4.adventori.com\/#website","url":"https:\/\/v4.adventori.com\/","name":"ADventori","description":"LESS ADS, MORE EFFICIENT ADS","publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/v4.adventori.com\/search\/{search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"fr-FR"},{"@type":"ImageObject","inLanguage":"fr-FR","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage","url":"https:\/\/v4.adventori.com\/media\/native-ads.jpg","contentUrl":"https:\/\/v4.adventori.com\/media\/native-ads.jpg","width":540,"height":410},{"@type":"WebPage","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage","url":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/","name":"PERSONNALISER LA POLICE | ADventori","isPartOf":{"@id":"https:\/\/v4.adventori.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage"},"datePublished":"2017-02-15T12:21:25+00:00","dateModified":"2018-01-18T10:38:03+00:00","breadcrumb":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#breadcrumb"},"inLanguage":"fr-FR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/v4.adventori.com\/fr\/"},{"@type":"ListItem","position":2,"name":"PERSONNALISER LA POLICE"}]},{"@type":"Article","@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#article","isPartOf":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage"},"author":{"@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564"},"headline":"PERSONNALISER LA POLICE","datePublished":"2017-02-15T12:21:25+00:00","dateModified":"2018-01-18T10:38:03+00:00","mainEntityOfPage":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#webpage"},"wordCount":229,"publisher":{"@id":"https:\/\/v4.adventori.com\/#organization"},"image":{"@id":"https:\/\/v4.adventori.com\/fr\/enabler-adobe-animate-fr\/dynamisation-du-texte\/personnaliser-la-police\/#primaryimage"},"thumbnailUrl":"https:\/\/v4.adventori.com\/media\/native-ads.jpg","articleSection":["DYNAMISATION DU TEXTE"],"inLanguage":"fr-FR"},{"@type":"Person","@id":"https:\/\/v4.adventori.com\/#\/schema\/person\/e6f1b8450889d31648a36063f22d3564","name":"Ismail Azdad","sameAs":["https:\/\/www.adventori.com\/"]}]}},"_links":{"self":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/15038"}],"collection":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/comments?post=15038"}],"version-history":[{"count":26,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/15038\/revisions"}],"predecessor-version":[{"id":19708,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/posts\/15038\/revisions\/19708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media\/1812"}],"wp:attachment":[{"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/media?parent=15038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/categories?post=15038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/v4.adventori.com\/fr\/wp-json\/wp\/v2\/tags?post=15038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}