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
    • Documents
    • Music
    • Sound Effects
    • Textures
    • Featured Tutorials
  • Submit Art
  • Collect
    • My Collections
    • Art Collections
  • Forums
  • FAQ
FLARE

FontEngine

Anonymous (not verified)
Tuesday, January 24, 2012 - 18: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);

  • Add new comment
Clint Bellanger
Wednesday, January 25, 2012 - 12:26
Clint Bellanger's picture

Thanks, I'll add this.

  • reply

Add new comment

The content of this field is kept private and will not be shown publicly.
Right Column

More information about text formats

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <br> <img> <del> <strike> <h1> <h2> <h3> <h4> <h5>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Attachments
You may attach one or more images to your post.
Files must be less than 200 MB.
Allowed file types: png gif jpg jpeg.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Fill in the blank.