Changed asserts and exceptions in Font to non-fatal error messages. Changed BitmapText::CropToWidth to ask the font how many glyphs will fit instead of removing one glyph at a time.

This commit is contained in:
Kyzentun
2015-02-27 17:38:30 -07:00
parent 7c2fd0153c
commit 50ab63b573
4 changed files with 165 additions and 59 deletions
+2 -1
View File
@@ -62,7 +62,8 @@ public:
void SetMaxHeight( float fMaxHeight );
void SetMaxDimUseZoom(bool use);
void SetWrapWidthPixels( int iWrapWidthPixels );
void CropToWidth( int iWidthInSourcePixels );
void CropLineToWidth(size_t l, int width);
void CropToWidth(int width);
virtual bool EarlyAbortDraw() const;
virtual void DrawPrimitives();