How to change Font type? (serif vs. sans-serif)
-
Since the discussion turned into "serif" vs. "sans-serif" fonts, I have updated the title accordingly...
-
@phenomlab said in How to change Font type? (serif vs. sans-serif):
Bottom line is use a font that scales well on mobile devices as well as desktops, and also leverage letter-spacing, line-height and other common CSS standards to make the text easy to read.
Yes, exactly
I totally agree with you, I guess most of the sites are just not willing to change, because they already are accustomed to seeing their own font on their webpage. However, I would definitely update it if it eases the reading process.
-
@crazycells This should work for posts
[component="post"] { font-family: "arial"; }
Similarly, if you wanted to target headers, you'd use (for example)
h1, h2, h3, h4
etc. You can also use the below to target topic titles[component="topic/title"] { font-family: "arial"; }
-
@phenomlab where can I find the list of all the universal fonts that I can pick?
Are these built-in in browsers?
-
@crazycells there isn't a list per se. The available fonts that will render on your system depends on what you have installed on your PC. For a font to be rendered, it will need to be included on your web server, or directly imported from Google Fonts for example.
-
@phenomlab thanks. I see, so they are basically installed in the OS... I already have a Font Book on the mac, that I was using for word and graphic design applications. I did not know they are also used for websites.
Unfortunately, I cannot upvote you anymore ( @julian this limit is too low )
-
@crazycells they can only be used on websites if they are installed and included in the site you are viewing. This basically means that unless the font is available on he remote server, it won't display to other users if they do not have it installed (but would for you if you have it installed)
This is why CSS on most websites will use
system
as a fallback so that the text is rendered even if the font cannot be found rather than the default ofTimes New Roman
being displayed. System essentially uses whatever font is the default on the system viewing the website. In essence, under Windows, this would be SegoeUI. Under a Mac, it's of course different.Importing a font into your website isn't a difficult task. It's explained very well here
https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file
However, if you'd like to include a font that isn't from Google this is still possible, but the process differs slightly - and the caveat here is that not all fonts are created equal. Some do not lend themselves very well to rendering within web pages, and so it's always best to go for "web safe" versions. For example, just try "master of puppets" (yes, Metallica) and see what happens !
In all seriousness, if you need help with fonts etc, happy to help.
-
@phenomlab said in How to change Font type? (serif vs. sans-serif):
@crazycells they can only be used on websites if they are installed and included in the site you are viewing. This basically means that unless the font is available on he remote server, it won't display to other users if they do not have it installed (but would for you if you have it installed)
This is why CSS on most websites will use
system
as a fallback so that the text is rendered even if the font cannot be found rather than the default ofTimes New Roman
being displayed. System essentially uses whatever font is the default on the system viewing the website. In essence, under Windows, this would be SegoeUI. Under a Mac, it's of course different.Importing a font into your website isn't a difficult task. It's explained very well here
https://stackoverflow.com/questions/14676613/how-to-import-google-web-font-in-css-file
However, if you'd like to include a font that isn't from Google this is still possible, but the process differs slightly - and the caveat here is that not all fonts are created equal. Some do not lend themselves very well to rendering within web pages, and so it's always best to go for "web safe" versions. For example, just try "master of puppets" (yes, Metallica) and see what happens !
In an seriousness, if you need help with fonts etc, happy to help.
thank you very much, this was helpful! I will let you know about the progress