{"id":598,"date":"2016-10-31T16:45:52","date_gmt":"2016-10-31T21:45:52","guid":{"rendered":"http:\/\/annettevee.com\/2016cdm\/?p=598"},"modified":"2016-10-31T16:48:52","modified_gmt":"2016-10-31T21:48:52","slug":"custom-font-tutorial","status":"publish","type":"post","link":"https:\/\/annettevee.com\/2016cdm\/2016\/10\/31\/custom-font-tutorial\/","title":{"rendered":"Custom Font Tutorial"},"content":{"rendered":"<p>Hey guys,<\/p>\n<p>As Professor Vee brought up, it&#8217;s easy for your website to look a little outdated because of the default settings. This will be a quick tutorial on how to use a custom font on your website.<\/p>\n<p>I will be using the font BetterTogether for this demo:<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-850 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1.gif?resize=300%2C61\" alt=\"step1\" width=\"300\" height=\"61\" \/><\/p>\n<p>Step 1: You have to choose a font and download it. My preference for custom fonts is dafont.com. It has an assorted selection of fonts that are typically free for personal use. I got this particular font at urbanfonts.com. It is important to note the author\u2019s copyright regulations on the ones you pick. Once you have downloaded it, open up the .zip folder and open the font file. Install the font from the window that opens.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-852 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1_.png?resize=598%2C325\" alt=\"step1_\" width=\"598\" height=\"325\" srcset=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1_.png?resize=300%2C163&amp;ssl=1 300w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1_.png?resize=768%2C418&amp;ssl=1 768w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1_.png?resize=1024%2C557&amp;ssl=1 1024w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step1_.png?w=1136&amp;ssl=1 1136w\" sizes=\"auto, (max-width: 598px) 100vw, 598px\" \/><\/p>\n<p>Step 2: Now that you have the font installed on your computer, you have access to it. **To find where the font is installed, just do a search for \u201cfonts\u201d in the search bar of your computer. Copy the font file. In order for your html files to have access to it, it must be saved in the same folder as your other files. If you are working from Sublime and a file on your desktop, add all of your files to the same folder. Or you can upload it straight to your repository on github. This step is very important or other computers will not be able to interpret your font!<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-854 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step2.png?resize=475%2C268\" alt=\"step2\" width=\"475\" height=\"268\" srcset=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step2.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step2.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step2.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step2.png?w=1366&amp;ssl=1 1366w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/p>\n<p>Step 3: Now that your files have access to the font file, it is time to code it. In the &lt;style&gt; tag, add the code you see below. You must replace where I wrote \u201cBetterTogether\u201d since that\u2019s the name of my font. The font-family is a name you create for your font that you will reference in the next step. The source url is the name of the font file that you copied into the folder. The two most common font files are .otf and .ttf, which are OpenType font files and TrueType font files.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\"wp-image-857 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step3.png?resize=445%2C369\" alt=\"step3\" width=\"445\" height=\"369\" srcset=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step3.png?resize=300%2C249&amp;ssl=1 300w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step3.png?w=660&amp;ssl=1 660w\" sizes=\"auto, (max-width: 445px) 100vw, 445px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Step 4: The next step involves creating a header or a class and then applying your custom font to that class. Include the font-family name that you created and the size of the font of you want. The fonts vary in size since they are custom, but you just have to play around with it. You can include any other CSS descriptors that you want, including align and color.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-858 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/step4.png?resize=456%2C377\" alt=\"step4\" width=\"456\" height=\"377\" srcset=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/step4.png?resize=300%2C248&amp;ssl=1 300w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/step4.png?w=662&amp;ssl=1 662w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Step 5: I decided that the font size at 100% was a little too small so I bumped it up. I added a whole list of things that are better together (ideas from <a href=\"http:\/\/www.sparkpeople.com\/myspark\/team_messageboard_thread.asp?board=17882x42796x49318564\">here<\/a>) in a new font to show how you can do several fonts on one page. Just follow the same steps and you have modernized your webpage.<\/p>\n<p><img data-recalc-dims=\"1\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-859 aligncenter\" src=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?resize=515%2C275\" alt=\"step5\" width=\"515\" height=\"275\" srcset=\"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?resize=768%2C410&amp;ssl=1 768w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?resize=1024%2C547&amp;ssl=1 1024w, https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?w=1360&amp;ssl=1 1360w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hey guys, As Professor Vee brought up, it&#8217;s easy for your website to look a little outdated because of the default settings. This will be a quick tutorial on how to use a custom font on your website. I will &hellip; <a href=\"https:\/\/annettevee.com\/2016cdm\/2016\/10\/31\/custom-font-tutorial\/\">Continued<\/a><\/p>\n","protected":false},"author":21,"featured_media":859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/annettevee.com\/2016cdm\/wp-content\/uploads\/2016\/10\/Step5.png?fit=1360%2C726&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7TOgG-9E","_links":{"self":[{"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/posts\/598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/comments?post=598"}],"version-history":[{"count":3,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/posts\/598\/revisions"}],"predecessor-version":[{"id":862,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/posts\/598\/revisions\/862"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/media\/859"}],"wp:attachment":[{"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/media?parent=598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/categories?post=598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/annettevee.com\/2016cdm\/wp-json\/wp\/v2\/tags?post=598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}