Closed
Bug 230002
Opened 21 years ago
Closed 21 years ago
nsFontMetricsBeOS.cpp cleanup
Categories
(Core Graveyard :: GFX: BeOS, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.7alpha
People
(Reporter: Biesinger, Assigned: Biesinger)
Details
Attachments
(1 file)
6.51 KB,
patch
|
sergei_d
:
review+
|
Details | Diff | Splinter Review |
nsIPref -> nsIPrefService, removal of some unnecessary memory allocations, and a
few other things
Assignee | ||
Comment 1•21 years ago
|
||
Assignee | ||
Updated•21 years ago
|
Attachment #138361 -
Flags: review?(sergei_d)
Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.7alpha
Comment 2•21 years ago
|
||
First notice:
+ isfixed = family.Equals("monospace") || family.Equals("fixed");
I'm unsure if 1) comparison should be case-sensitive 2) maybe family.Contains
(?) is more reliable
Second notice (you didn't know about, though)
- if (!IsASCIIFontName(aName))
+ if (!IsASCII(aName)
Non-ascii utf-8 font names are allowed in BeOS, and even sometimes required.
So i think this check may be omitted at all - see bug 200589
and two patches there. I think it is good idea, as we doing cleanup, to
implement both here.
Comment 3•21 years ago
|
||
Also wondering if this patch will fix
http://bugzilla.mozilla.org/show_bug.cgi?id=173116
problem:)
Hope so
Assignee | ||
Comment 4•21 years ago
|
||
> 1) comparison should be case-sensitive
Well, the old version was case-sensitive as well
> 2) maybe family.Contains(?) is more reliable
I checked what families are used here, and it was always a single word like
"monospace" "fixed" "Arial" etc. so .Equals seems safe.
Comment 5•21 years ago
|
||
>I checked what families are used here, and it was always a single word like
>"monospace" "fixed" "Arial" etc. so .Equals seems safe.
this is safe if we use "generic" families.
But what happens if there is request by page source to use Arial, but we have.
for example "Arial Unicode" installed? Does it matter for this method?
Assignee | ||
Comment 6•21 years ago
|
||
Arial Unicode is not a fixed font...
Comment 7•21 years ago
|
||
ok, in this place it seems ok.
So it is notice for another places for future, when we will rewrite methods like
GetFontsList or such:)
Comment 8•21 years ago
|
||
If you think that this patch is wrong place to allow Japanese font names, i will
put review for it.
Assignee | ||
Comment 9•21 years ago
|
||
yes, I would prefer if the japanese fonts were addressed in a separate bug
Comment 10•21 years ago
|
||
Attachment #138361 -
Flags: review?(sergei_d) → review+
Assignee | ||
Comment 11•21 years ago
|
||
Checking in gfx/src/beos/nsFontMetricsBeOS.cpp;
/cvsroot/mozilla/gfx/src/beos/nsFontMetricsBeOS.cpp,v <-- nsFontMetricsBeOS.cpp
new revision: 1.35; previous revision: 1.34
done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•