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)

x86
Windows NT
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE
Future

People

(Reporter: pierre, Unassigned)

References

()

Details

(Keywords: css2, css3, helpwanted)

Attachments

(8 files)

I implemented the css system fonts in XP code and on the Mac (that was bug 3371). We need to complete the job in GetSysFontInfo() in nsDeviceContextWin.cpp. It should be easy: you have already done most of it. The testcase from bug 3371 is copied in the URL above.
Blocks: 16729
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
mass-move to M16
Target Milestone: --- → M16
Non-essential for m16
Target Milestone: M16 → M17
Keywords: patch
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.
MS Sans Serif doesn't work because it's a bitmap font. See bug 22031.
moving to M18
Status: NEW → ASSIGNED
Target Milestone: M17 → M18
CCd Ben who told me that an external contributor (Matt?) had done it or had worked in that area. Ben, any details?
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.
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
Blocks: 44806
Nominate for nsbeta3 since it's required for Classic skin to work right
Keywords: nsbeta3
Blocks: 45513
Adding skins keyword per Phil's comment.
Keywords: skins
*** Bug 11285 has been marked as a duplicate of this bug. ***
Marking nsbeta3+
Whiteboard: [nsbeta3+]
Blocks: 44656
Summary: [DPD]WinGFX: need support for css2/css3 system fonts → WinGFX: need support for css2/css3 system fonts
Setting priority to P1
Priority: P3 → P1
Target Milestone: M17 → M18
Summary: WinGFX: need support for css2/css3 system fonts → need support for css2/css3 system fonts
Summary: need support for css2/css3 system fonts → [MOSTLY FIXED]need support for css2/css3 system fonts
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
*** Bug 55565 has been marked as a duplicate of this bug. ***
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.
Okay, I think this bug was set up to track the issue with Windows. Bug 33313 tracks the issue with Linux/GTK.
Keywords: css2, css3
This is fixed now
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Keywords: skins
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 → ---
I'll need help with this, I do not have access to anything other than English WinNT
Status: REOPENED → ASSIGNED
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
0.8 works fine for Win95-J.
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
Roland, please attach an example to test with, thanks.
Priority: P1 → P3
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
Assignee: rods → nobody
Status: ASSIGNED → NEW
Summary: need support for css2/css3 system fonts → need support for css system fonts
Whiteboard: WFM?
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.
3mm at 72 DPI should be 8.5px. We get 12-13px instead, same as at 96 DPI.
3mm at 144 DPI should be 17px. We get 12-13px instead, same as at 96 DPI.
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.
Keywords: helpwanted
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 ago20 years ago
Resolution: --- → FIXED
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
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.
Product: Core → Core Graveyard
Status: NEW → RESOLVED
Closed: 20 years ago9 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: