Closed
Bug 33312
Opened 25 years ago
Closed 9 months ago
WinGFX: need full support for css system fonts
Categories
(Core Graveyard :: GFX: Win32, defect, P3)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
Future
People
(Reporter: pierre, Unassigned)
References
()
Details
(Keywords: css2, css3, helpwanted)
Attachments
(8 files)
I've modified the code GetSysFontInfo() for CSS2 (not CSS3) system fonts and
attached it in the previous attachment.
Sherry Wang
xiaotong@us.ibm.com
Comment 5•25 years ago
|
||
Looks like this was added. Awesome!
I did have a problem. The caption font on my system is bold, but the font-weight
isn't getting picked up by "font: caption". If I use an italic font, that is
reflected. Even if I do "font: caption" and later "font-weight: bold", it
doesn't work (it does with italic and font-style).
I looked at the patch and I don't think the problem is there, although the
mapping from the LOGFONT to nsFont weight could be handled better. The weight
can take on more values than bold and normal.
Several of my system fonts are "MS Sans Serif", which is a bitmap font. I don't
think mozilla supports raster fonts, but it should choose an appropriate
substitute. On my system, it looks like it is choosing "Times New Roman".
These issues might extend beyond this bug.
Reporter | ||
Comment 8•25 years ago
|
||
CCd Ben who told me that an external contributor (Matt?) had done it or had
worked in that area. Ben, any details?
Comment 9•25 years ago
|
||
pierre@netscape.com: I checked in an improved version of the patch that
xiaotong@us.ibm.com attached to this bug report. In addition to the 2 problems
that Chris Hill mentioned above, the fonts I used for the CSS3 properties should
probably be improved. I mapped all CSS3 properties to a fixed size GUI font.
Instead, each of them should probably be mapped to one of the fonts returned by
the Windows APIs for the CSS2 properties.
Updated•24 years ago
|
Depends on: 22031
Summary: WinGFX: need support for css2/css3 system fonts → [DPD]WinGFX: need support for css2/css3 system fonts
Target Milestone: M18 → M17
Comment 10•24 years ago
|
||
Nominate for nsbeta3 since it's required for Classic skin to work right
Keywords: nsbeta3
Comment 12•24 years ago
|
||
*** Bug 11285 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
Summary: [DPD]WinGFX: need support for css2/css3 system fonts → WinGFX: need support for css2/css3 system fonts
Updated•24 years ago
|
Target Milestone: M17 → M18
Updated•24 years ago
|
Summary: WinGFX: need support for css2/css3 system fonts → need support for css2/css3 system fonts
Updated•24 years ago
|
Summary: need support for css2/css3 system fonts → [MOSTLY FIXED]need support for css2/css3 system fonts
Comment 15•24 years ago
|
||
This now works (mostly) on all platforms, Linux was just checked in. I wouldn't
consider it complete, which is why I am NOT closing out the bug. More
reasearch needs to be done on what fonts and font sizes are needed for the
various CSS3 fonts.
But I am downgrading it from nsbeta3, because it gives us enough for the first
release.
removing nsbeta3 and setting to future
Keywords: nsbeta3
Summary: [MOSTLY FIXED]need support for css2/css3 system fonts → need support for css2/css3 system fonts
Whiteboard: [nsbeta3+]
Target Milestone: M18 → Future
Comment 16•24 years ago
|
||
*** Bug 55565 has been marked as a duplicate of this bug. ***
Comment 17•24 years ago
|
||
Comment 18•24 years ago
|
||
Actually, I can't see that CSS2 system fonts are working at all on Linux. The
attached test case gives me 12pt Helvetica for all fonts, regardless of the font
used in my GTK theme.
Comment 19•24 years ago
|
||
Okay, I think this bug was set up to track the issue with Windows. Bug 33313
tracks the issue with Linux/GTK.
Comment 20•24 years ago
|
||
This is fixed now
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 21•24 years ago
|
||
A Japanese user reported system fonts don't work on Win95.
This bug should be reopened.
http://bugzilla.mozilla.gr.jp/show_bug.cgi?id=457
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 22•24 years ago
|
||
I'll need help with this, I do not have access to anything other than English
WinNT
Status: REOPENED → ASSIGNED
Comment 23•24 years ago
|
||
Netscape's standard compliance QA team reorganised itself once again, so taking
remaining non-tables style bugs. Sorry about the spam. I tried to get this done
directly at the database level, but apparently that is "not easy because of the
shadow db", "plus it screws up the audit trail", so no can do...
QA Contact: chrisd → ian
Comment 24•24 years ago
|
||
0.8 works fine for Win95-J.
Comment 25•24 years ago
|
||
Comment 26•24 years ago
|
||
System fonts not quite working yet - look at the attachment (above) to
see the differences in how IE 5.5 and Mozilla render system fonts:
For example - "caption" font should be bold, whereas Mozilla seems to ignore that.
It seems there are some size differences also, though I might be mistaken (I
tried to set fixed size - that didn't change anything).
OH yes - I use Moz 0.9
Comment 27•24 years ago
|
||
Roland, please attach an example to test with, thanks.
Updated•23 years ago
|
Priority: P1 → P3
Comment 28•22 years ago
|
||
For reference, the relevant CSS 2 spec. URL is
[http://www.w3.org/TR/REC-CSS2/fonts.html#x27].
Using FizzillaCFM/2002071208, the testcase doesn't appear entirely right.
caption: not sure what OS X element this should be patterend after.
icon: appears to be correct.
menu: too small
message-box: appears to be correct.
small caption: I think this is probably supposed to be like the text shown under
toolbar icons in the OS X Finder. If so, this shouldn't be bold.
Setting All/All.
status bar: appears to be correct.
OS: Windows NT → All
Hardware: PC → All
Updated•21 years ago
|
Assignee: rods → nobody
Status: ASSIGNED → NEW
Summary: need support for css2/css3 system fonts → need support for css system fonts
Whiteboard: WFM?
Comment 29•20 years ago
|
||
In intl.css we specify: window {font: 3mm tahoma,arial,helvetica,sans-serif;},
which is what menubar seems to inherit. 3mm at 96 DPI should be 11.34px. We
almost get it, getting 12-13px instead.
Comment 30•20 years ago
|
||
3mm at 72 DPI should be 8.5px. We get 12-13px instead, same as at 96 DPI.
Comment 31•20 years ago
|
||
3mm at 144 DPI should be 17px. We get 12-13px instead, same as at 96 DPI.
Comment 32•20 years ago
|
||
Attachment is source of current
http://calicovial.no-ip.com/SS/fonts/mozchrome/chromesizetable.html which has
my tabulation of what we are currently doing. GTK2 & Win seem right, but GTK1
definitely isn't very friendly. URL has screenshots I won't attach here unless
requested.
Updated•20 years ago
|
Keywords: helpwanted
Comment 33•20 years ago
|
||
We don't seem to be using any system font, CSS2 menu or otherwise. What we do
use is much too small for the context.
This bug is long since fixed. Please file new issues in other bugs.
Status: NEW → RESOLVED
Closed: 24 years ago → 20 years ago
Resolution: --- → FIXED
Comment 35•20 years ago
|
||
Attachment 169675 [details] was intended to support comment 9 & comment 18, which seem to
indicate this bug was never properly fixed in the first place. If this was
"fixed", what bug(s)/patch(es) fixed it?
Actually, after testing on Windows, reopening and restoring roughly original
summary and platform.
Status: RESOLVED → REOPENED
Component: Style System (CSS) → GFX: Win32
OS: All → Windows NT
Hardware: All → PC
Resolution: FIXED → ---
Summary: need support for css system fonts → WinGFX: need full support for css system fonts
Whiteboard: WFM?
Assignee: nobody → win32
Status: REOPENED → NEW
Comment 37•20 years ago
|
||
Hmm, David willing to comment on what the outstanding issue is on this bug,
would be useful for a clearly written "what" on this, after all the confusion,
especially since the summary was changed to something it shouldnt have been before.
comment 9
Also, I was just restoring the summary roughly to what it was originally; it
should never have been changed.
Updated•16 years ago
|
Product: Core → Core Graveyard
Status: NEW → RESOLVED
Closed: 20 years ago → 9 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•