{"id":82,"date":"2021-06-03T21:36:58","date_gmt":"2021-06-03T20:36:58","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/?page_id=82"},"modified":"2021-06-09T21:13:40","modified_gmt":"2021-06-09T20:13:40","slug":"text-font","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/css\/css-properties\/text-font\/","title":{"rendered":"font-family"},"content":{"rendered":"<h1><a href=\"https:\/\/www.w3schools.com\/css\/css_font.asp\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-59 alignright\" src=\"https:\/\/glow-prod-sh.s3.eu-west-1.amazonaws.com\/sh\/public\/ahscomputinghtml\/uploads\/sites\/3275\/2021\/06\/03210120\/w3schools-150x150.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&#038;X-Amz-Security-Token=IQoJb3JpZ2luX2VjEL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJHMEUCICwV6CKv%2F1Xjs6l%2B6gCfJDNz%2FHbwOcbHrMLXHrsL%2B%2FHmAiEAt8HXh1f%2FHpJ0omAOWw5RVz0O3I66d%2Fh%2F08XddLAcECkqwgUIiP%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FARAFGgwyNzM1NzAxOTU0MzMiDBAvZaJNu2adfCJUTiqWBYLCMkW4NhugUQxGFHk9OtXXZ4pRkamvc%2BRYhJ4sNffLajTtqC7NPbtwMr9Da0f1vps2b2yNuWismnCi7s%2FpE2eaiJM8SO2YUDlS1raH4yLbG%2F%2FPTBDH8Rur1zm1wYxtWXj95ft0r097MawXo9%2FmPmLupG8WAnlODewC3VgE4H4iJ5oF6TWRHlMOqRRtci2mlLIFOUciPN8Kx%2FEFRqsRsv2daDIcTKlK5mSnWWdvQd5RRLQtfH23wEXHIlqKRM%2BJQZRxksEDG1n5Zer5vxqknvAi%2B9%2Bz4y0h7U2Rwz%2BbNJ1JIZyaC1lfDBdEJADocyjoZlrdpgtdJuDrXeBw9%2FPI8vUjZc4kqOGkG2ZNf1AzW98ogU07Lh%2FGKFrHRqmI4wgb1LYXS5rkBH8m0Z46yOqP9QO0BBoy%2FN3O59ocg2nl5eI9Ceywhd2Vjq%2BIdVSLBs3kVZ8apGM8oAD6lwY0o7%2BYo6Cn5etUrMcnW13ta0enEPztInGVG2o7510ZqLVNAyXOL1VGFh1a0%2BIyzSOIo%2FpT3t0kWWpw8ps%2BI8a4%2BO2bFELYn%2FIk%2B8Wmzs0vmGWO2wQxsVf7vapXPrly8TCip7Q32fWohLaUxkuLfW4aI%2BQDg%2B5Vl3zusQCgMmEtBHVECVYwaJpQjaEGymbL0q9FVLAELE0KeH2KIyaE%2BOFO2GyEnm7fE5OdEIceVHrqgOBUiuAoQSGz1ZykIqtNNZVtEgfH3k4z2csiop9598Ljs16TkJH66ae4%2FWtNZZgANNZP9XX3amj3yn7amGp9TF9RXEKeO1iG7BkegMcMeBuBlmBicT44ijYsP9ivapeuPV8VUXHGS0h0BBAU41NMbkwMrdrGV1uBxouK02d5RyI6qrz5K7jYml5J%2FnmAMIyBi9UGOrEBnvTJ1uNzBayNbtTIADtQVImkwHeRUoZLFujFg7%2F9tl9L8XDgI3xrsPUG3F7dNd957FlXc5MpPuuyPrSymgOvgrTdBErtRNMq6JpRFdz8kKwcUEj94DO%2BC%2F5uZL2wHHapQlhM6%2FFHTtw1LcYXaLc3QA%2F7YPk%2FYO4CpU27E%2BSS6oDm4NMln20nxdFuLzljlkFvj%2FZHaDZCwsUKDTIWPJ5%2BHImnYaSUaUEFw%2FdXjXr96OMb&#038;X-Amz-Algorithm=AWS4-HMAC-SHA256&#038;X-Amz-Credential=ASIAT7MQN47U6LLYHGLF%2F20260910%2Feu-west-1%2Fs3%2Faws4_request&#038;X-Amz-Date=20260910T151851Z&#038;X-Amz-SignedHeaders=host&#038;X-Amz-Expires=900&#038;X-Amz-Signature=5e374b70a8a670049e693b2e14fadc25b70423131e45c6463caf69bab7198f8e\" alt=\"\" width=\"50\" height=\"47\" \/><\/a><\/h1>\n<p>Font rules can be given to text objects or their containers.<\/p>\n<p>Fonts are often given a list, so that if a font is not available then another can be used.<\/p>\n<p>If a font name has a space, then it must be enclosed in either quotation marks or apostrophes.<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\np {\r\n\u00a0\u00a0font-family: &quot;Times New Roman&quot;, Times, serif;\r\n}\r\n<\/pre>\n<h1>Google Fonts<\/h1>\n<p>There are 10 <a href=\"https:\/\/www.w3schools.com\/cssref\/css_websafe_fonts.asp\">web safe fonts<\/a>.<\/p>\n<p><a href=\"https:\/\/fonts.google.com\/\">Google Fonts<\/a> has over 1000 fonts that are free to use. However, before you can use a Google font it has to be loaded in either an external or internal style sheet.<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">@import url('https:\/\/fonts.googleapis.com\/css2?family=Roboto&amp;display=swap');\r\n\r\np {\r\n    font-family: 'Roboto', sans-serif;\r\n}\r\n<\/pre>\n<p>Spaces inside a font name needs to be replaced with a &#8216;+&#8217; sign when it is loaded, but surrounded by quotation marks or apostrophes when it is used:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">@import url('https:\/\/fonts.googleapis.com\/css2?family=Sigmar+One&amp;display=swap');\r\n\r\nh1 {\r\n    font-family: 'Sigmar One', cursive;\r\n}\r\n<\/pre>\n<p>The Google Fonts page will give you necessary code to copy and paste &#8211; click on the <strong>@import<\/strong> option<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Font rules can be given to text objects or their containers. Fonts are often given a list, so that if a font is not available then another can be used. If a font name has a space, then it must be enclosed in either quotation marks or apostrophes. p { \u00a0\u00a0font-family: &quot;Times New Roman&quot;, Times, serif; } Google Fonts There are 10 web safe fonts. Google Fonts has over 1000<\/p>\n<p><a class=\"more-link\" href=\"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/css\/css-properties\/text-font\/\">Read More<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"parent":366,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-82","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/pages\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":8,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/pages\/82\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/pages\/82\/revisions\/234"}],"up":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/pages\/366"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/sh\/ahscomputinghtml\/wp-json\/wp\/v2\/media?parent=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}