Browse Source

Minor doc edit & header comment fix.

Lasse Öörni 8 years ago
parent
commit
cd38109ddf
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Docs/Reference.dox
  2. 2 2
      Source/Urho3D/UI/FontFace.h

+ 1 - 1
Docs/Reference.dox

@@ -2244,7 +2244,7 @@ Hint levels LIGHT and NONE allow for subpixel glyph positioning, which greatly i
 
 
 When textures aren't pixel-aligned, bilinear texture filtering makes them appear blurry. Therefore, subpixel font textures are oversampled (stretched horizontally) to reduce this blurriness, at the cost of extra memory usage. By default, subpixel fonts use 2x oversampling. Call \ref UI::SetFontOversampling "SetFontOversampling" to change this.
 When textures aren't pixel-aligned, bilinear texture filtering makes them appear blurry. Therefore, subpixel font textures are oversampled (stretched horizontally) to reduce this blurriness, at the cost of extra memory usage. By default, subpixel fonts use 2x oversampling. Call \ref UI::SetFontOversampling "SetFontOversampling" to change this.
 
 
-Subpixel positioning only operates horizontally. Text is always pixel-aligned vertically.
+Subpixel positioning only operates horizontally. %Text is always pixel-aligned vertically.
 
 
 \section UI_Sprites Sprites
 \section UI_Sprites Sprites
 
 

+ 2 - 2
Source/Urho3D/UI/FontFace.h

@@ -43,9 +43,9 @@ struct URHO3D_API FontGlyph
     short x_;
     short x_;
     /// Y position in texture.
     /// Y position in texture.
     short y_;
     short y_;
-    /// X position in texture.
+    /// Width in texture.
     short texWidth_;
     short texWidth_;
-    /// Y position in texture.
+    /// Height in texture.
     short texHeight_;
     short texHeight_;
     /// Width on screen.
     /// Width on screen.
     float width_;
     float width_;