Talk:Font family (HTML)

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Computing  
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
 ???  This article has not yet received a rating on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.

Sample display[edit]

  • Firefox 1.0.4/Mac all the samples display as my default font.
  • Safari 2.0/Mac, a few samples display as intended.
  • Internet Explorer 5.2/Mac, only a half dozen display as intended.

Image files would perhaps better show the intended display. --sparkit (talk) July 1, 2005 20:55 (UTC)

Agreed - Is there any browser that does render these all correctly? If not, we can compile an image from different browsers that support different pieces of it... ~ Booya Bazooka 22:09, 4 August 2006 (UTC)
I don't understand the intention of the big list labelled "there may be many other font families"—are these generic families supported by some browser? They certainly aren't in the HTML specification. It doesn't look like a list of common font faces either.
Try searching for "font family" 01:56, 30 August 2006 (UTC)
Particular font families are not "supported by browsers". To display more fonts correctly, you just install them in your system, and the browser uses them as any other program does. Michael Z. 2006-08-05 13:35 Z

What about "verdana? Isn't that a common font family? — Preceding unsigned comment added by (talk) 22:27, June 19, 2007

References to 'you'[edit]

many times 'you' or 'your browser' is mentioned. surely this is bad practice and needs to be changed to 'the user'? — Preceding unsigned comment added by (talk) 16:02, July 7, 2007


Insert non-formatted text here

— Preceding unsigned comment added by (talk) 19:48, February 19, 2008

"Font names must be quoted if containing whitespaces"[edit]

A simple test casts doubt on this claim. Edit the list of fonts at the bottom of the article and change 'Times New Roman', times, serif; to Times New Roman, monospace; (deleting the single quotes around the font name); then click Show preview. In Firefox I see a serif font, not monospace, and I bet that I would see the same thing in Internet Explorer. Putting quotes around whitespace-containing font names would make sense only if the list was separated by spaces instead of commas. Nevertheless, it is probably correct to say, "Official standards dictate that font names must be quoted if containing whitespaces, but this is not necessary in practice because the list of fonts is comma-separated and web browsers will correctly interpret the list if quotes are omitted." However, I will not change the article unless I can track down a source. --Keith111 (talk) 01:08, 24 July 2009 (UTC)

@Keith111, the w3c dictates this and is the authority on html & css, so... ( ) -- DocLeonard (talk) 04:19, 23 January 2012 (UTC)

A better test case to use would be Arial Black, if you have this font on your system. You can see that the text is indeed rendered in Arial Black rather than plain Arial, so the browser does not truncate the font name after "Arial", despite the font name not being enclosed in quotes in the inline CSS. --Keith111 (talk) 01:30, 24 July 2009 (UTC)

sewa bharti

rotery regency cmputer instituteregd10189[edit]

—Preceding unsigned comment added by (talk) 07:43, 30 July 2010 (UTC)

Source of "Generic fonts"?[edit]

Is there a directory/vocabulary from which the fonts in the "Generic fonts" table are taken? They are not given in the W3C CSS2 Fonts specification. Martin de la Iglesia (talk) 10:22, 16 November 2011 (UTC)

Changing font[edit]

How do you change the font in a table, especially when it is not a whole cell? Allen (talk) 17:59, 11 March 2012 (UTC)

I don't think this is really the place to ask this kind of question, but I will answer anyway.
To change the font of an entire table, I'm pretty sure you just apply the font to the table tag.
To change the font of an individual cell, give a class or id to your cell using the attribute "class" or "id", then you can reference it in css using "td.class{} OR td#id{}"
To change the font of some text inside a cell, surround the cell in tags, and give the span cells a class or id as defined above. Then, use <nowiki>"span.class{} OR span#id{}"
Hope this helped. Alexmitchell1 (talk) 09:10, 19 April 2016 (UTC)

There's something wrong with the type faces mentioned[edit]

Script and Modern appear differently in the two places they are mentioned. I don't feel comfortable editing the document. (talk) 21:47, 21 January 2013 (UTC)gary