Closed Bug 881946 Opened 12 years ago Closed 12 years ago

update graphite2 library to release 1.2.3

Categories

(Core :: Graphics: Text, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

Attachments

(1 file, 1 obsolete file)

See upstream release announcement: "Not much in the changelog but there is a key bug fix for good fonts with interesting cmap subtable lengths. . fix byte swapping when testing cmap subtable lengths . work around armel compilation problems with conditional operators . fix pseudoglyph support for advance and bbox"
Attachment #761192 - Flags: review?(jdaggett)
Does that calculation in Sparse.h make sense to you?
I discussed this with Martin, and confirmed the change being made here is correct - it's just removing a multiplication by sizeof(mapped_type) as that will be done internally by the grzeroalloc<mapped_type> function anyway. So the old code was doing an excessive (clownshoes) allocation. There -is- actually a (pre-existing) logic error in the expression, where it uses sizeof(mapped_type)/2 it should really be using sizeof(mapped_type)-1, but as mapped_type is uint16, the result is the same and nothing untoward will follow. :) They'll fix this upstream, although unless/until the "sparse" class is genericized to accept a template argument for mapped_type instead of hardcoding it as uint16, it's not important for the generated code - both subexpressions simply evaluate to "1" at compile time.
Martin checked in the cleanup for the Sparse.h calculation to the graphite repo, so I've updated the patch here to include that. (As already noted, it makes no difference to the actual code, as the constant expression still evaluates to the same thing.)
Attachment #762570 - Flags: review?(jdaggett)
Attachment #761192 - Attachment is obsolete: true
Attachment #761192 - Flags: review?(jdaggett)
Comment on attachment 762570 [details] [diff] [review] update graphite2 library to release 1.2.3 Good, thanks.
Attachment #762570 - Flags: review?(jdaggett) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: