diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-07-09 21:08:09 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-07-10 15:36:35 +0300 |
| commit | 97b0c99e29a60e858f7328094de7e59e5ad02278 (patch) | |
| tree | bdef608b55990c1adf180f308e7316fcb7b70467 /indra/llrender/llfontfreetype.h | |
| parent | 2957421ccf58d57b7569fc46913e2787f41c655a (diff) | |
#5966 Fixed width font's numbers
Dejavu used fixed width numbers by default, tweaked fonts to do the same
for inter (when weight > 0).
Diffstat (limited to 'indra/llrender/llfontfreetype.h')
| -rw-r--r-- | indra/llrender/llfontfreetype.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/llrender/llfontfreetype.h b/indra/llrender/llfontfreetype.h index d2164e8fa2..461e064766 100644 --- a/indra/llrender/llfontfreetype.h +++ b/indra/llrender/llfontfreetype.h @@ -76,6 +76,8 @@ struct LLFontGlyphInfo U32 mGlyphIndex; EFontGlyphType mGlyphType; + llwchar mChar; + // Metrics S32 mWidth; // In pixels @@ -147,6 +149,9 @@ public: F32 getXKerning(llwchar char_left, llwchar char_right) const; // Get the kerning between the two characters F32 getXKerning(const LLFontGlyphInfo* left_glyph_info, const LLFontGlyphInfo* right_glyph_info) const; // Get the kerning between the two characters + F32 getMaxDigitWidth() const { return mMaxDigitWidth; } + S32 getFontWeight() const { return mWeight; } + LLFontGlyphInfo* getGlyphInfo(llwchar wch, EFontGlyphType glyph_type) const; void reset(F32 vert_dpi, F32 horz_dpi); @@ -184,6 +189,7 @@ private: F32 mAscender; F32 mDescender; F32 mLineHeight; + mutable F32 mMaxDigitWidth; LLFT_Face mFTFace; |
