summaryrefslogtreecommitdiff
path: root/indra/llrender/llfontgl.cpp
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2019-10-27 16:41:38 +0200
committerKitty Barnett <develop@catznip.com>2019-10-27 16:41:38 +0200
commit05566ce7a7e1895a5b3ab2f9df2587dac63429e1 (patch)
treed74096c225ee496a8ecc57c7864d1eb6767773eb /indra/llrender/llfontgl.cpp
parent4e2b2f662ad3f7b2e09f9451227bbf7018d91708 (diff)
Font debugging aid to dump descriptors + individual textures
Diffstat (limited to 'indra/llrender/llfontgl.cpp')
-rw-r--r--indra/llrender/llfontgl.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/llrender/llfontgl.cpp b/indra/llrender/llfontgl.cpp
index 86a4c35e6d..990a3e8281 100644
--- a/indra/llrender/llfontgl.cpp
+++ b/indra/llrender/llfontgl.cpp
@@ -831,6 +831,26 @@ void LLFontGL::initClass(F32 screen_dpi, F32 x_scale, F32 y_scale, const std::st
}
}
+void LLFontGL::dumpTextures()
+{
+ if (mFontFreetype.notNull())
+ {
+ mFontFreetype->dumpFontBitmaps();
+ }
+}
+
+// static
+void LLFontGL::dumpFonts()
+{
+ sFontRegistry->dump();
+}
+
+// static
+void LLFontGL::dumpFontTextures()
+{
+ sFontRegistry->dumpTextures();
+}
+
// Force standard fonts to get generated up front.
// This is primarily for error detection purposes.
// Don't do this during initClass because it can be slow and we want to get