[Bug 458169] implement downloadable font support on Linux

bugzilla-daemon at mozilla.org bugzilla-daemon at mozilla.org
Tue Nov 18 01:16:07 UTC 2008


Do not reply to this email.  You can add comments to this bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=458169





--- Comment #2 from Karl Tomlinson (:karlt) <mozbugz at karlt.net>  2008-11-17 17:16:00 PST ---
Created an attachment (id=348692)
 --> (https://bugzilla.mozilla.org/attachment.cgi?id=348692)
proof of concept for src:url()

This provides src:url() web fonts.  It hasn't had much testing but works on
http://www.w3.org/International/tests/test-webfonts/test-georgian-ucnobi.html

Currently FcFreeTypeQueryFace is used and so fontconfig-2.4.2 or newer is
required.  I'll need to add support for older versions.  (Our CentOS 5.0 build
and test machines have fontconfig-2.4.1.)

To avoid temporary files (sometimes?) being created by nsIDownloader in system
directories and not-necessarily cleaned up, fonts are loaded into memory
through nsIStreamLoader in order to access them.

This misses an opportunity for sharing glyph caches etc across pages, but that
can be something that is sorted out if/when we have a downloaded-font cache.

A reference to the nsIStreamLoader is held to keep the font data in memory
until the font entry is destroyed.

This makes possible future optimization of nsIStreamLoader (or a new loader
type) such that, when appropriate, the font data is pinned to the disk cache
and the logical address of the data is provided through mmap rather than a
memory copy of the file data.  (This I think would benefit all platforms, even
those on which platform libraries make their own copy of all the data.)

-- 
Configure bugmail: https://bugzilla.mozilla.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the Fedora-fonts-bugs-list mailing list