Closed
Bug 271763
Opened 20 years ago
Closed 20 years ago
helvetica font displayed as a serif font
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: oskar, Unassigned)
Details
Attachments
(1 file)
|
284 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20041120 Firefox/1.0 (Debian package 1.0-3) Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.5) Gecko/20041120 Firefox/1.0 (Debian package 1.0-3) Browse the HTML below. The text will be displayed with a Serif font. I.e. it will look more like Times[New Roman] rather than Bitstream Vera Sans or Arial. Helvetica is aliased as a Sans Serif in /etc/fonts/fonts.conf (default configuration, no changes). Helvetica looks normal in other applications like Gnumeric and other GTK 2 apps. That is, it is substituted with Bitstream Vera Sans from ttf-bitstream-vera which I also have installed. I don't have msttcorefonts installed. My mozilla/firefox font settings are the default: Proportional: Serif Serif: serif Sans-serif: sans-serif Monospace: monospace (Always use my Fonts is not checked) I have GTK2 2.4.13, fontconfig 2.2.3, libxft2 2.1.2, freetype 2.1.7. Reproducible: Always Steps to Reproduce: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Font test</title> </head> <body> <div style="font-family: helvetica">This is some text.</div> </body> Actual Results: Text is rendered with serif font. Expected Results: Text should be rendered with sans serif font.
Comment 1•20 years ago
|
||
Reporter, if you suggest someone browse to some content, you should provide a URL, or create an attachment containing the content you suggest, not paste the content into your comments.
Comment 2•20 years ago
|
||
Here's the sample HTML. The text of the page displays in a sans serif font for me, though I couldn't swear it's helvetica rather than my usual sans-serif font. I'm using a current trunk build of firefox built with gtk2.
Comment 3•20 years ago
|
||
> That is, it is substituted with Bitstream Vera Sans from ttf-bitstream-vera
In this case, you want "font-family: Helvetica, sans-serif" if you want that
behavior. Otherwise, if Helvetica is not found, the CSS specification says that
the fallback font is the user's default font. In your case, that's "serif" per
your prefs.Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•