{"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=IQoJb3JpZ2luX2VjEMn%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEaCWV1LXdlc3QtMSJIMEYCIQDfDjXxSMyE%2Bcl0WZQ5ZIC1tOhEXqWvOxrK%2F%2BDDlSFkAwIhAKP4QQtMfFH1ThAShTA1s5oHiBL73YOKTr50TBN7SKiMKsIFCJL%2F%2F%2F%2F%2F%2F%2F%2F%2F%2FwEQBRoMMjczNTcwMTk1NDMzIgwuM%2Bmr9QQlyZ6Cic8qlgXFyHGCq%2F4%2FtsYAgIlyyO9wFJoWGXPpfLRHNmqNK%2F2HJtCgu2aje0gZDxlB%2F8n00r4r68UNflNCY83MKXIMMBlH6bbCw%2Ba4M5yKypMCruLTqNxfY0541w3W4fZehyQh65dgvAhkLQFmS2u4cGd89B7ak4fj2lDTc6VsCfbqC1UNtS%2FqyaWXkhaToDwrt2cspkaTqBki6BAutzx0hpCjbmM0DmY98n6ZswhsW7sML76Cvq4EC0E%2B3rlI%2BgxJjvqPZNo4Lz3pqn%2F0kJu1iU2DtyyzWeIeJN4gKQis8wsjavXyH8rnZAH5rmYpNo2%2BTNAxAs7dX3Z7nKYNqi3%2FHzxTUyKLFjw3YveLKrVjTfiyp9zDizv8qGaqBmEuQKmmI1hT%2BcTJ7AtWNvEcKPvVsEG%2BQf1Htnpgp1dPBt6dM1cdn%2F%2FVPBjyXoaDmHU1gSNM0Ru5paKHf1QTBvdywefd1rTKB8bOiMgoy4puJh4S%2F1eu5DHBG%2FAM8EnO%2BjnYh3BAVovgJZLkr0VgljBo5Qk3u78AD8ZvyOF9TiZrrHD4bCcbr%2BfDA9ryWwCESNOYtrDKGeqalA%2FsXEC2hyPYe8VcBgjcfJd3%2FmJb%2FslZPVDCI8V6RKZzFhglEyuGAUsQQxG7GOT18UoVVl5FwZVaOKHTrkbDx3tJQg2JmFs7O26GPwr2zK9BA181vpn34q%2B5owZ%2BuUnrvEPzomaHASdZXibDfzDtvFY%2Bhu%2FX0tlUha7q6nGTkr5D6WlQ%2FSb7Z%2FZgfIkqvW80fmZ8Zw95%2BRq6JJ%2FSFPMwoghlY9AwGAvXykcQSUMiN%2FyLtTw1I1uzEb9gy%2Bu2IUonulehQ5ZUZCzzlMoeeWIvNEivYElRHrrelfLcNVeSSiIVR6M4c8w%2BCTC05pzUBjqwAQiEwZEHYOfGecwHdAj0GGJq356y8MwEUCkzP6eazyeYH%2Bj%2BrEPhn5QlaFmdLa%2Bgm8IBrEnAe40bmPAzGMK1U1DJOWHOXE2%2BfAk0%2Bt74IfFUUFzSuktkPjo3OptNhsubi4LHVeuziKKFsGRJWOSRWB1khioIJZvGIZkFQCPvJd60wrevHjmS8ILiFca7l0oG9lGsCmfcpDd3j6mgEtUGGiCg2%2Fxnw9bvRrIAcdxzbChd&#038;X-Amz-Algorithm=AWS4-HMAC-SHA256&#038;X-Amz-Credential=ASIAT7MQN47U3JIVYEDW%2F20260820%2Feu-west-1%2Fs3%2Faws4_request&#038;X-Amz-Date=20260820T171218Z&#038;X-Amz-SignedHeaders=host&#038;X-Amz-Expires=900&#038;X-Amz-Signature=d89683b2c0f2c3153638732ac738e7f9eaf0bf601a9781dc29692a10b593024b\" 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}]}}