summaryrefslogtreecommitdiffstats
path: root/gfx/thebes/SharedFontList.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 15:11:27 +0000
commitf3bcaf9f88aad2c423ebcd61121562f9834187d4 (patch)
treef22238c29b57707b645a350940e3e9bdf3ce1f5d /gfx/thebes/SharedFontList.h
parentAdding debian version 115.7.0esr-1~deb12u1. (diff)
downloadfirefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.tar.xz
firefox-esr-f3bcaf9f88aad2c423ebcd61121562f9834187d4.zip
Merging upstream version 115.8.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/thebes/SharedFontList.h')
-rw-r--r--gfx/thebes/SharedFontList.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gfx/thebes/SharedFontList.h b/gfx/thebes/SharedFontList.h
index f2eaf28223..279bbd1a57 100644
--- a/gfx/thebes/SharedFontList.h
+++ b/gfx/thebes/SharedFontList.h
@@ -198,7 +198,8 @@ struct Face {
return !mDescriptor.IsNull() && mIndex != uint16_t(-1);
}
- void SetCharacterMap(FontList* aList, gfxCharacterMap* aCharMap);
+ void SetCharacterMap(FontList* aList, gfxCharacterMap* aCharMap,
+ const Family* aFamily);
String mDescriptor;
uint16_t mIndex;
@@ -330,6 +331,10 @@ struct Family {
void SetupFamilyCharMap(FontList* aList);
+ // Return the index of this family in the font-list's Families() or
+ // AliasFamilies() list, and which of those it belongs to.
+ std::pair<uint32_t, bool> FindIndex(FontList* aList) const;
+
private:
// Returns true if there are specifically-sized bitmap faces in the list,
// so size selection still needs to be done. (Currently only on Linux.)