Skip to main content

User login

What is OpenID?
  • Log in using OpenID
  • Cancel OpenID login
  • Create new account
  • Request new password
Register
  • Home
  • Browse
    • 2D Art
    • 3D Art
    • Concept Art
    • Textures
    • Music
    • Sound Effects
    • Documents
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
  • Leaderboards
    • All Time
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
    • Weekly
      • Total Points
      • Comments
      • Favorites (All)
      • Favorites (2D)
      • Favorites (3D)
      • Favorites (Concept Art)
      • Favorites (Music)
      • Favorites (Sound)
      • Favorites (Textures)
  • ❤ Donate
FLARE [ARCHIVED]

FontEngine

Anonymous
Tuesday, January 24, 2012 - 15:32

Maybe you should check the file FontEngine .*:

-    int calc_width(std::string text);
-    Point calc_size(std::string text_with_newlines, int width);
-    void render(std::string text, int x, int y, int justify, SDL_Surface *target, int color);
-    void render(std::string text, int x, int y, int justify, SDL_Surface *target, int width, int color);
-    void renderShadowed(std::string text, int x, int y, int justify, SDL_Surface *target, int color);
-    void renderShadowed(std::string text, int x, int y, int justify, SDL_Surface *target, int width, int color);

To const ref:

+    int calc_width(const std::string& text);
+    Point calc_size(const std::string& text_with_newlines, int width);
+    void render(const std::string& text, int x, int y, int justify, SDL_Surface *target, int color);
+    void render(const std::string& text, int x, int y, int justify, SDL_Surface *target, int width, int color);
+    void renderShadowed(const std::string& text, int x, int y, int justify, SDL_Surface *target, int color);
+    void renderShadowed(const std::string& text, int x, int y, int justify, SDL_Surface *target, int width, int color);

  • Log in or register to post comments
Clint Bellanger
joined 15 years 7 months ago
Wednesday, January 25, 2012 - 09:26
Clint Bellanger's picture

Thanks, I'll add this.

  • Log in or register to post comments