You are not logged in.

#1 2022-02-10 04:58:53

bohokash
Member
Registered: 2019-11-30
Posts: 76

How can I list those fonts which I can use in a html page?

I would like somehow to determine, and try out those fonts which are installed on my system, by setting the fonts one by one on a locally hosted HTML page. How can I query those fonts which are installed on my system, and how can I determine the specific name what I should use in the HTML code?

Then I will take a screenshot of the text, so I don't mind if the font is web-safe or not, as it will be sent later as an image.

Offline

#2 2022-02-10 05:03:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How can I list those fonts which I can use in a html page?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-02-10 05:34:17

bohokash
Member
Registered: 2019-11-30
Posts: 76

Re: How can I list those fonts which I can use in a html page?

Yes, and how can one find out the name, what should be used in the HTML or CSS source?

Offline

#4 2022-02-10 06:02:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How can I list those fonts which I can use in a html page?

If you try running the command for yourself, you'll see that it prints the names of the installed fonts.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-02-10 19:18:48

cameo
Member
Registered: 2012-08-18
Posts: 123

Re: How can I list those fonts which I can use in a html page?

Anyway, if the font names you get contain spaces, better quote them; see also 3., however.

FYI:

  1. Wikipedia: article on web typography

  2. Wikibooks: CSS/Fonts and Text

  3. Unquoted font family names in CSS

Offline

Board footer

Powered by FluxBB