Open stratofax opened 6 months ago
@stratofax Which font family do you want to use for heading as Serif font?
I like Garamond, from the Web Safe set. Let's try that.
@stratofax This font only for heading right?
@stratofax Font added done
@ratulkhan74 as you can see (above) I linked this Issue to PR #24 -- please do the same for all the other related issues before we merge and close #24 .
@stratofax okay i will, actually i just notice that you asked me to add the link link #24
@ratulkhan74 The whole point of using Web Safe fonts was to avoid having to download and load font files. Please remove all font files from this branch, and update the font specification for headings only as follows:
Garamond, Georgia, Times New Roman, Times, serif
@stratofax without the source file how these font will load and this is the way how we have to add our own fonts also system by default support sans-serif
font not serif
fonts
@ratulkhan74 the same way the system-font
specification works.
This font specification:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif
instructs the browser to look for each font, in order of appearance, already installed on the visitor's computer. If a font isn't pre-installed (like, say, Ubuntu
) the browser will try the next font, until it reaches sans-serif
-- which is always available.
That's the whole idea behind "web safe" fonts: they're a set of fonts that are typically installed in most or all computers.
Interestingly, your font spec (above) doesn't include a web-safe font! Please add one from this list that isn't Helvetica or Arial (also boring!)
https://blog.hubspot.com/website/web-safe-html-css-fonts
TL;DR: Web safe font list:
Note that Garamond
is not included on this list, even though it's often pre-installed on Windows and Mac computers. That's why our new heading font spec needs to include Georgia
and serif
as well.
Does that make sense?
@stratofax let's give it a try it's work or not the way you want to add all the fonts in the theme.json file
@stratofax I have added few fonts from your given list the way you wanted to add I am creating a PR
@ratulkhan74 as noted, please link an Issue to a PR or a branch when you start your work on the code.
@stratofax I didn't understand. How i can link an issue to a PR or a branch when i will start work on the code
@ratulkhan74 I'll post some links here to help explain exactly what I mean.
@stratofax It would be better and it will help me a lot
The current version of the pico theme specifies one sans-serif font for the entire site. Let's use a Serif web safe font for headings, and the existing font spec for body text.