Closed Bug 226340 Opened 21 years ago Closed 21 years ago

Implement mLoadedFonts on OS/2

Categories

(Core Graveyard :: GFX: OS/2, defect)

x86
OS/2
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jhpedemonte, Assigned: mkaply)

Details

Attachments

(2 files)

We should implement the use of the mLoadedFonts array as used in Win32 (and
other platforms).  Use of this array to hold selected fonts should give us
performance boost and make the code look cleaner.
This patch does several things:
1) Implements mLoadedFonts array.  This makes the code look cleaner, and should
increase performance, since we are doing less creation and destruction of
nsFontOS2 objects.
2) Update to the unicode handling, particularly in ResolveForwards/Backwards. 
Makes use of mLoadedFonts array, but also persists the font objects through the
loop.
3) Added some debugging code, to track font selection, and nsFontOS2 creation
and destruction.
4) White space cleanup in several areas.
Same patch, but ignoring white space changes
Comment on attachment 135997 [details] [diff] [review]
patch (cvs diff -u)

r=mkaply

Nice work
Attachment #135997 - Flags: review+
checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: