2009-08-16 06:52:12 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
#ifndef GFXPLATFORMFONTLIST_H_
|
|
|
|
#define GFXPLATFORMFONTLIST_H_
|
|
|
|
|
|
|
|
#include "nsDataHashtable.h"
|
|
|
|
#include "nsRefPtrHashtable.h"
|
2011-11-08 12:22:04 -08:00
|
|
|
#include "nsTHashtable.h"
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
#include "gfxFontUtils.h"
|
2014-01-28 23:39:01 -08:00
|
|
|
#include "gfxFontInfoLoader.h"
|
2009-08-16 06:52:12 -07:00
|
|
|
#include "gfxFont.h"
|
|
|
|
#include "gfxPlatform.h"
|
|
|
|
|
2012-03-27 14:38:39 -07:00
|
|
|
#include "nsIMemoryReporter.h"
|
2012-06-12 21:14:28 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2013-06-23 05:03:39 -07:00
|
|
|
#include "mozilla/MemoryReporting.h"
|
2010-05-19 16:22:19 -07:00
|
|
|
|
2012-04-18 16:59:43 -07:00
|
|
|
class CharMapHashKey : public PLDHashEntryHdr
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef gfxCharacterMap* KeyType;
|
|
|
|
typedef const gfxCharacterMap* KeyTypePointer;
|
|
|
|
|
|
|
|
CharMapHashKey(const gfxCharacterMap *aCharMap) :
|
|
|
|
mCharMap(const_cast<gfxCharacterMap*>(aCharMap))
|
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(CharMapHashKey);
|
|
|
|
}
|
|
|
|
CharMapHashKey(const CharMapHashKey& toCopy) :
|
|
|
|
mCharMap(toCopy.mCharMap)
|
|
|
|
{
|
|
|
|
MOZ_COUNT_CTOR(CharMapHashKey);
|
|
|
|
}
|
|
|
|
~CharMapHashKey()
|
|
|
|
{
|
|
|
|
MOZ_COUNT_DTOR(CharMapHashKey);
|
|
|
|
}
|
|
|
|
|
|
|
|
gfxCharacterMap* GetKey() const { return mCharMap; }
|
|
|
|
|
|
|
|
bool KeyEquals(const gfxCharacterMap *aCharMap) const {
|
|
|
|
NS_ASSERTION(!aCharMap->mBuildOnTheFly && !mCharMap->mBuildOnTheFly,
|
|
|
|
"custom cmap used in shared cmap hashtable");
|
|
|
|
// cmaps built on the fly never match
|
|
|
|
if (aCharMap->mHash != mCharMap->mHash)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
return mCharMap->Equals(aCharMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const gfxCharacterMap* KeyToPointer(gfxCharacterMap *aCharMap) {
|
|
|
|
return aCharMap;
|
|
|
|
}
|
|
|
|
static PLDHashNumber HashKey(const gfxCharacterMap *aCharMap) {
|
|
|
|
return aCharMap->mHash;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum { ALLOW_MEMMOVE = true };
|
|
|
|
|
|
|
|
protected:
|
|
|
|
gfxCharacterMap *mCharMap;
|
|
|
|
};
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// gfxPlatformFontList is an abstract class for the global font list on the system;
|
|
|
|
// concrete subclasses for each platform implement the actual interface to the system fonts.
|
|
|
|
// This class exists because we cannot rely on the platform font-finding APIs to behave
|
|
|
|
// in sensible/similar ways, particularly with rich, complex OpenType families,
|
|
|
|
// so we do our own font family/style management here instead.
|
|
|
|
|
|
|
|
// Much of this is based on the old gfxQuartzFontCache, but adapted for use on all platforms.
|
|
|
|
|
2012-03-27 14:38:39 -07:00
|
|
|
struct FontListSizes {
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mFontListSize; // size of the font list and dependent objects
|
2012-03-27 14:38:39 -07:00
|
|
|
// (font family and face names, etc), but NOT
|
|
|
|
// including the font table cache and the cmaps
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mFontTableCacheSize; // memory used for the gfxFontEntry table caches
|
|
|
|
uint32_t mCharMapsSize; // memory used for cmap coverage info
|
2012-03-27 14:38:39 -07:00
|
|
|
};
|
|
|
|
|
2014-04-17 07:17:22 -07:00
|
|
|
class gfxUserFontSet;
|
|
|
|
|
2014-01-28 23:39:01 -08:00
|
|
|
class gfxPlatformFontList : public gfxFontInfoLoader
|
2009-08-16 06:52:12 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
static gfxPlatformFontList* PlatformFontList() {
|
|
|
|
return sPlatformFontList;
|
|
|
|
}
|
|
|
|
|
|
|
|
static nsresult Init() {
|
|
|
|
NS_ASSERTION(!sPlatformFontList, "What's this doing here?");
|
2010-11-08 03:02:27 -08:00
|
|
|
gfxPlatform::GetPlatform()->CreatePlatformFontList();
|
|
|
|
if (!sPlatformFontList) {
|
|
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
}
|
2009-08-16 06:52:12 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void Shutdown() {
|
|
|
|
delete sPlatformFontList;
|
2012-07-30 07:20:58 -07:00
|
|
|
sPlatformFontList = nullptr;
|
2009-08-16 06:52:12 -07:00
|
|
|
}
|
|
|
|
|
2011-06-11 19:30:16 -07:00
|
|
|
virtual ~gfxPlatformFontList();
|
|
|
|
|
2010-11-08 03:02:27 -08:00
|
|
|
// initialize font lists
|
|
|
|
virtual nsresult InitFontList();
|
|
|
|
|
2010-02-24 09:57:57 -08:00
|
|
|
void GetFontList (nsIAtom *aLangGroup,
|
2009-08-16 06:52:12 -07:00
|
|
|
const nsACString& aGenericFamily,
|
|
|
|
nsTArray<nsString>& aListOfFonts);
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool ResolveFontName(const nsAString& aFontName,
|
2009-08-16 06:52:12 -07:00
|
|
|
nsAString& aResolvedFontName);
|
|
|
|
|
2014-04-17 07:17:22 -07:00
|
|
|
void UpdateFontList();
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
void ClearPrefFonts() { mPrefFonts.Clear(); }
|
|
|
|
|
2011-04-13 00:28:34 -07:00
|
|
|
virtual void GetFontFamilyList(nsTArray<nsRefPtr<gfxFontFamily> >& aFamilyArray);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2012-03-08 18:05:24 -08:00
|
|
|
virtual gfxFontEntry*
|
2012-08-22 08:56:38 -07:00
|
|
|
SystemFindFontForChar(const uint32_t aCh,
|
|
|
|
int32_t aRunScript,
|
2012-03-08 18:05:24 -08:00
|
|
|
const gfxFontStyle* aStyle);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2009-10-07 10:16:52 -07:00
|
|
|
// TODO: make this virtual, for lazily adding to the font list
|
2011-01-21 08:44:33 -08:00
|
|
|
virtual gfxFontFamily* FindFamily(const nsAString& aFamily);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
gfxFontEntry* FindFontForFamily(const nsAString& aFamily, const gfxFontStyle* aStyle, bool& aNeedsBold);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool GetPrefFontFamilyEntries(eFontPrefLang aLangGroup, nsTArray<nsRefPtr<gfxFontFamily> > *array);
|
2009-08-16 06:52:12 -07:00
|
|
|
void SetPrefFontFamilyEntries(eFontPrefLang aLangGroup, nsTArray<nsRefPtr<gfxFontFamily> >& array);
|
|
|
|
|
2010-01-28 17:41:25 -08:00
|
|
|
// name lookup table methods
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
void AddOtherFamilyName(gfxFontFamily *aFamilyEntry, nsAString& aOtherFamilyName);
|
|
|
|
|
2010-01-28 17:41:25 -08:00
|
|
|
void AddFullname(gfxFontEntry *aFontEntry, nsAString& aFullname);
|
|
|
|
|
|
|
|
void AddPostscriptName(gfxFontEntry *aFontEntry, nsAString& aPostscriptName);
|
|
|
|
|
2013-09-02 01:41:57 -07:00
|
|
|
bool NeedFullnamePostscriptNames() { return mExtraNames != nullptr; }
|
2010-01-28 17:41:25 -08:00
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// pure virtual functions, to be provided by concrete subclasses
|
|
|
|
|
2012-12-19 01:42:25 -08:00
|
|
|
// get the system default font family
|
|
|
|
virtual gfxFontFamily* GetDefaultFont(const gfxFontStyle* aStyle) = 0;
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
// look up a font by name on the host platform
|
|
|
|
virtual gfxFontEntry* LookupLocalFont(const gfxProxyFontEntry *aProxyEntry,
|
|
|
|
const nsAString& aFontName) = 0;
|
|
|
|
|
|
|
|
// create a new platform font from downloaded data (@font-face)
|
2009-08-30 06:55:24 -07:00
|
|
|
// this method is responsible to ensure aFontData is NS_Free()'d
|
2009-10-07 07:13:40 -07:00
|
|
|
virtual gfxFontEntry* MakePlatformFont(const gfxProxyFontEntry *aProxyEntry,
|
2012-08-22 08:56:38 -07:00
|
|
|
const uint8_t *aFontData,
|
|
|
|
uint32_t aLength) = 0;
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
// get the standard family name on the platform for a given font name
|
2009-10-07 07:13:40 -07:00
|
|
|
// (platforms may override, eg Mac)
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool GetStandardFamilyName(const nsAString& aFontName, nsAString& aFamilyName);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2013-10-14 19:19:47 -07:00
|
|
|
virtual void AddSizeOfExcludingThis(mozilla::MallocSizeOf aMallocSizeOf,
|
|
|
|
FontListSizes* aSizes) const;
|
|
|
|
virtual void AddSizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf,
|
|
|
|
FontListSizes* aSizes) const;
|
2012-03-27 14:38:39 -07:00
|
|
|
|
2012-04-18 16:59:43 -07:00
|
|
|
// search for existing cmap that matches the input
|
|
|
|
// return the input if no match is found
|
|
|
|
gfxCharacterMap* FindCharMap(gfxCharacterMap *aCmap);
|
|
|
|
|
|
|
|
// add a cmap to the shared cmap set
|
|
|
|
gfxCharacterMap* AddCmap(const gfxCharacterMap *aCharMap);
|
|
|
|
|
|
|
|
// remove the cmap from the shared cmap set
|
|
|
|
void RemoveCmap(const gfxCharacterMap *aCharMap);
|
|
|
|
|
2014-04-17 07:17:22 -07:00
|
|
|
// keep track of userfont sets to notify when global fontlist changes occur
|
|
|
|
void AddUserFontSet(gfxUserFontSet *aUserFontSet) {
|
|
|
|
mUserFontSetList.PutEntry(aUserFontSet);
|
|
|
|
}
|
|
|
|
|
|
|
|
void RemoveUserFontSet(gfxUserFontSet *aUserFontSet) {
|
|
|
|
mUserFontSetList.RemoveEntry(aUserFontSet);
|
|
|
|
}
|
|
|
|
|
2014-05-05 11:59:55 -07:00
|
|
|
static const gfxFontEntry::ScriptRange sComplexScriptRanges[];
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
protected:
|
2013-12-07 21:39:47 -08:00
|
|
|
class MemoryReporter MOZ_FINAL : public nsIMemoryReporter
|
2012-03-27 14:38:39 -07:00
|
|
|
{
|
|
|
|
public:
|
2013-12-07 21:39:47 -08:00
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIMEMORYREPORTER
|
2012-03-27 14:38:39 -07:00
|
|
|
};
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
gfxPlatformFontList(bool aNeedFullnamePostscriptNames = true);
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
static gfxPlatformFontList *sPlatformFontList;
|
|
|
|
|
|
|
|
static PLDHashOperator FindFontForCharProc(nsStringHashKey::KeyType aKey,
|
|
|
|
nsRefPtr<gfxFontFamily>& aFamilyEntry,
|
|
|
|
void* userArg);
|
|
|
|
|
2012-03-08 18:05:24 -08:00
|
|
|
// returns default font for a given character, null otherwise
|
2012-12-19 01:42:25 -08:00
|
|
|
gfxFontEntry* CommonFontFallback(const uint32_t aCh,
|
|
|
|
int32_t aRunScript,
|
|
|
|
const gfxFontStyle* aMatchStyle,
|
|
|
|
gfxFontFamily** aMatchedFamily);
|
2012-03-08 18:05:24 -08:00
|
|
|
|
|
|
|
// search fonts system-wide for a given character, null otherwise
|
2012-08-22 08:56:38 -07:00
|
|
|
virtual gfxFontEntry* GlobalFontFallback(const uint32_t aCh,
|
|
|
|
int32_t aRunScript,
|
2012-03-08 18:05:24 -08:00
|
|
|
const gfxFontStyle* aMatchStyle,
|
2012-12-19 01:42:25 -08:00
|
|
|
uint32_t& aCmapCount,
|
|
|
|
gfxFontFamily** aMatchedFamily);
|
2012-03-08 18:05:24 -08:00
|
|
|
|
2012-03-08 18:05:40 -08:00
|
|
|
// whether system-based font fallback is used or not
|
|
|
|
// if system fallback is used, no need to load all cmaps
|
|
|
|
virtual bool UsesSystemFallback() { return false; }
|
|
|
|
|
2014-01-28 23:39:01 -08:00
|
|
|
// verifies that a family contains a non-zero font count
|
|
|
|
gfxFontFamily* CheckFamily(gfxFontFamily *aFamily);
|
|
|
|
|
2014-04-22 22:20:21 -07:00
|
|
|
// initialize localized family names
|
2009-08-16 06:52:12 -07:00
|
|
|
void InitOtherFamilyNames();
|
|
|
|
|
2014-04-22 22:20:20 -07:00
|
|
|
static PLDHashOperator
|
|
|
|
InitOtherFamilyNamesProc(nsStringHashKey::KeyType aKey,
|
|
|
|
nsRefPtr<gfxFontFamily>& aFamilyEntry,
|
|
|
|
void* userArg);
|
|
|
|
|
|
|
|
// search through font families, looking for a given name, initializing
|
|
|
|
// facename lists along the way. first checks all families with names
|
|
|
|
// close to face name, then searchs all families if not found.
|
|
|
|
gfxFontEntry* SearchFamiliesForFaceName(const nsAString& aFaceName);
|
|
|
|
|
|
|
|
static PLDHashOperator
|
|
|
|
ReadFaceNamesProc(nsStringHashKey::KeyType aKey,
|
|
|
|
nsRefPtr<gfxFontFamily>& aFamilyEntry,
|
|
|
|
void* userArg);
|
|
|
|
|
|
|
|
// helper method for finding fullname/postscript names in facename lists
|
|
|
|
gfxFontEntry* FindFaceName(const nsAString& aFaceName);
|
2010-01-28 17:41:25 -08:00
|
|
|
|
2014-04-22 22:20:20 -07:00
|
|
|
// look up a font by name, for cases where platform font list
|
|
|
|
// maintains explicit mappings of fullname/psname ==> font
|
|
|
|
virtual gfxFontEntry* LookupInFaceNameLists(const nsAString& aFontName);
|
2010-01-28 17:41:25 -08:00
|
|
|
|
2014-04-22 22:20:20 -07:00
|
|
|
static PLDHashOperator LookupMissedFaceNamesProc(nsStringHashKey *aKey,
|
|
|
|
void *aUserArg);
|
2010-01-28 17:41:25 -08:00
|
|
|
|
2014-04-22 22:20:21 -07:00
|
|
|
static PLDHashOperator LookupMissedOtherNamesProc(nsStringHashKey *aKey,
|
|
|
|
void *aUserArg);
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// commonly used fonts for which the name table should be loaded at startup
|
|
|
|
virtual void PreloadNamesList();
|
|
|
|
|
2010-01-27 22:56:16 -08:00
|
|
|
// load the bad underline blacklist from pref.
|
|
|
|
void LoadBadUnderlineList();
|
2009-08-16 06:52:12 -07:00
|
|
|
|
|
|
|
// explicitly set fixed-pitch flag for all faces
|
|
|
|
void SetFixedPitch(const nsAString& aFamilyName);
|
|
|
|
|
|
|
|
void GenerateFontListKey(const nsAString& aKeyName, nsAString& aResult);
|
|
|
|
|
|
|
|
static PLDHashOperator
|
|
|
|
HashEnumFuncForFamilies(nsStringHashKey::KeyType aKey,
|
|
|
|
nsRefPtr<gfxFontFamily>& aFamilyEntry,
|
|
|
|
void* aUserArg);
|
|
|
|
|
2014-01-28 23:39:01 -08:00
|
|
|
virtual void GetFontFamilyNames(nsTArray<nsString>& aFontFamilyNames);
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// gfxFontInfoLoader overrides, used to load in font cmaps
|
|
|
|
virtual void InitLoader();
|
2014-01-28 23:39:01 -08:00
|
|
|
virtual bool LoadFontInfo();
|
|
|
|
virtual void CleanupLoader();
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2013-04-26 00:40:44 -07:00
|
|
|
// read the loader initialization prefs, and start it
|
|
|
|
void GetPrefsAndStartLoader();
|
|
|
|
|
2014-04-17 07:17:22 -07:00
|
|
|
// for font list changes that affect all documents
|
|
|
|
void ForceGlobalReflow();
|
|
|
|
|
2012-03-27 14:38:39 -07:00
|
|
|
// used by memory reporter to accumulate sizes of family names in the hash
|
|
|
|
static size_t
|
|
|
|
SizeOfFamilyNameEntryExcludingThis(const nsAString& aKey,
|
|
|
|
const nsRefPtr<gfxFontFamily>& aFamily,
|
2013-06-23 05:03:39 -07:00
|
|
|
mozilla::MallocSizeOf aMallocSizeOf,
|
2012-03-27 14:38:39 -07:00
|
|
|
void* aUserArg);
|
|
|
|
|
2009-10-07 10:16:52 -07:00
|
|
|
// canonical family name ==> family entry (unique, one name per family entry)
|
2010-01-28 17:41:25 -08:00
|
|
|
nsRefPtrHashtable<nsStringHashKey, gfxFontFamily> mFontFamilies;
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2010-01-28 17:41:25 -08:00
|
|
|
// other family name ==> family entry (not unique, can have multiple names per
|
2009-10-07 10:16:52 -07:00
|
|
|
// family entry, only names *other* than the canonical names are stored here)
|
2010-01-28 17:41:25 -08:00
|
|
|
nsRefPtrHashtable<nsStringHashKey, gfxFontFamily> mOtherFamilyNames;
|
|
|
|
|
2009-10-07 10:16:52 -07:00
|
|
|
// flag set after InitOtherFamilyNames is called upon first name lookup miss
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mOtherFamilyNamesInitialized;
|
2009-10-07 10:16:52 -07:00
|
|
|
|
2010-01-28 17:41:25 -08:00
|
|
|
// flag set after fullname and Postcript name lists are populated
|
2014-04-22 22:20:20 -07:00
|
|
|
bool mFaceNameListsInitialized;
|
2010-01-28 17:41:25 -08:00
|
|
|
|
2013-09-02 01:41:57 -07:00
|
|
|
struct ExtraNames {
|
|
|
|
ExtraNames() : mFullnames(100), mPostscriptNames(100) {}
|
|
|
|
// fullname ==> font entry (unique, one name per font entry)
|
|
|
|
nsRefPtrHashtable<nsStringHashKey, gfxFontEntry> mFullnames;
|
|
|
|
// Postscript name ==> font entry (unique, one name per font entry)
|
|
|
|
nsRefPtrHashtable<nsStringHashKey, gfxFontEntry> mPostscriptNames;
|
|
|
|
};
|
|
|
|
nsAutoPtr<ExtraNames> mExtraNames;
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2014-04-22 22:20:20 -07:00
|
|
|
// face names missed when face name loading takes a long time
|
|
|
|
nsAutoPtr<nsTHashtable<nsStringHashKey> > mFaceNamesMissed;
|
|
|
|
|
2014-04-22 22:20:21 -07:00
|
|
|
// localized family names missed when face name loading takes a long time
|
|
|
|
nsAutoPtr<nsTHashtable<nsStringHashKey> > mOtherNamesMissed;
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// cached pref font lists
|
|
|
|
// maps list of family names ==> array of family entries, one per lang group
|
|
|
|
nsDataHashtable<nsUint32HashKey, nsTArray<nsRefPtr<gfxFontFamily> > > mPrefFonts;
|
|
|
|
|
|
|
|
// when system-wide font lookup fails for a character, cache it to skip future searches
|
|
|
|
gfxSparseBitSet mCodepointsWithNoFonts;
|
|
|
|
|
|
|
|
// the family to use for U+FFFD fallback, to avoid expensive search every time
|
|
|
|
// on pages with lots of problems
|
2012-12-19 01:42:25 -08:00
|
|
|
nsRefPtr<gfxFontFamily> mReplacementCharFallbackFamily;
|
2009-08-16 06:52:12 -07:00
|
|
|
|
2011-11-08 12:22:04 -08:00
|
|
|
nsTHashtable<nsStringHashKey> mBadUnderlineFamilyNames;
|
2010-01-27 22:56:16 -08:00
|
|
|
|
2012-04-18 16:59:43 -07:00
|
|
|
// character map data shared across families
|
|
|
|
// contains weak ptrs to cmaps shared by font entry objects
|
|
|
|
nsTHashtable<CharMapHashKey> mSharedCmaps;
|
|
|
|
|
2009-08-16 06:52:12 -07:00
|
|
|
// data used as part of the font cmap loading process
|
|
|
|
nsTArray<nsRefPtr<gfxFontFamily> > mFontFamiliesToLoad;
|
2012-08-22 08:56:38 -07:00
|
|
|
uint32_t mStartIndex;
|
|
|
|
uint32_t mIncrement;
|
|
|
|
uint32_t mNumFamilies;
|
2014-04-17 07:17:22 -07:00
|
|
|
|
|
|
|
nsTHashtable<nsPtrHashKey<gfxUserFontSet> > mUserFontSetList;
|
2009-08-16 06:52:12 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* GFXPLATFORMFONTLIST_H_ */
|