Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarFont.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 12:49:18 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 12:49:18 +1100
commit84a2d8f7f8807977ad1174221a7231ce5e776aba (patch)
tree8dbcd1b43b70d85ebc93835b13f7ebc9122d5af8 /source/core/StarFont.cpp
parent9aaaf874e99369627510011c4f9ffef36a09c832 (diff)
change fonts to woff2
Diffstat (limited to 'source/core/StarFont.cpp')
-rw-r--r--source/core/StarFont.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/core/StarFont.cpp b/source/core/StarFont.cpp
index 82151e3..63356ad 100644
--- a/source/core/StarFont.cpp
+++ b/source/core/StarFont.cpp
@@ -32,11 +32,11 @@ struct FontImpl {
FT_Face face;
};
-FontPtr Font::loadTrueTypeFont(String const& fileName, unsigned pixelSize) {
- return loadTrueTypeFont(make_shared<ByteArray>(File::readFile(fileName)), pixelSize);
+FontPtr Font::loadFont(String const& fileName, unsigned pixelSize) {
+ return loadFont(make_shared<ByteArray>(File::readFile(fileName)), pixelSize);
}
-FontPtr Font::loadTrueTypeFont(ByteArrayConstPtr const& bytes, unsigned pixelSize) {
+FontPtr Font::loadFont(ByteArrayConstPtr const& bytes, unsigned pixelSize) {
FontPtr font = make_shared<Font>();
font->m_fontBuffer = bytes;
@@ -54,7 +54,7 @@ FontPtr Font::loadTrueTypeFont(ByteArrayConstPtr const& bytes, unsigned pixelSiz
Font::Font() : m_pixelSize(0), m_alphaThreshold(0) {}
FontPtr Font::clone() const {
- return Font::loadTrueTypeFont(m_fontBuffer, m_pixelSize);
+ return Font::loadFont(m_fontBuffer, m_pixelSize);
}
void Font::setPixelSize(unsigned pixelSize) {