summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/examples/common/font/font_manager.h
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/examples/common/font/font_manager.h')
-rw-r--r--3rdparty/bgfx/examples/common/font/font_manager.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/3rdparty/bgfx/examples/common/font/font_manager.h b/3rdparty/bgfx/examples/common/font/font_manager.h
index 886c5835093..d2d9e511970 100644
--- a/3rdparty/bgfx/examples/common/font/font_manager.h
+++ b/3rdparty/bgfx/examples/common/font/font_manager.h
@@ -33,7 +33,7 @@ struct FontInfo
float descender;
/// The spacing in pixels between one row's descent and the next row's ascent.
float lineGap;
- /// This field gives the maximum horizontal cursor advance for all glyphs in the font.
+ /// This field gives the maximum horizontal cursor advance for all glyphs in the font.
float maxAdvanceWidth;
/// The thickness of the under/hover/strike-trough line in pixels.
float underlineThickness;
@@ -100,12 +100,12 @@ struct GlyphInfo
float offset_y;
/// For horizontal text layouts, this is the unscaled horizontal
- /// distance in pixels used to increment the pen position when the
+ /// distance in pixels used to increment the pen position when the
/// glyph is drawn as part of a string of text.
float advance_x;
/// For vertical text layouts, this is the unscaled vertical distance
- /// in pixels used to increment the pen position when the glyph is
+ /// in pixels used to increment the pen position when the glyph is
/// drawn as part of a string of text.
float advance_y;
@@ -125,7 +125,7 @@ public:
/// Create the font manager and create the texture cube as BGRA8 with
/// linear filtering.
- FontManager(uint32_t _textureSideWidth = 512);
+ FontManager(uint16_t _textureSideWidth = 512);
~FontManager();
@@ -135,7 +135,7 @@ public:
return m_atlas;
}
- /// Load a TrueType font from a given buffer. The buffer is copied and
+ /// Load a TrueType font from a given buffer. The buffer is copied and
/// thus can be freed or reused after this call.
///
/// @return invalid handle if the loading fail
@@ -155,7 +155,7 @@ public:
/// Preload a set of glyphs from a TrueType file.
///
- /// @return True if every glyph could be preloaded, false otherwise if
+ /// @return True if every glyph could be preloaded, false otherwise if
/// the Font is a baked font, this only do validation on the characters.
bool preloadGlyph(FontHandle _handle, const wchar_t* _string);
@@ -167,7 +167,7 @@ public:
/// @remark the handle is required to be valid
const FontInfo& getFontInfo(FontHandle _handle) const;
- /// Return the rendering informations about the glyph region. Load the
+ /// Return the rendering informations about the glyph region. Load the
/// glyph from a TrueType font if possible
///
const GlyphInfo* getGlyphInfo(FontHandle _handle, CodePoint _codePoint);