rexim 5 years ago
parent
commit
10e172d5d9
2 changed files with 4 additions and 2 deletions
  1. 1 1
      src/vodus_image32.cpp
  2. 3 1
      src/vodus_main.cpp

+ 1 - 1
src/vodus_image32.cpp

@@ -232,7 +232,7 @@ void slap_text_onto_image32_wrapped(Image32 surface,
     advance_pen_for_text(face, text, &copy_x, &copy_y);
     if (copy_x >= (int)surface.width) {
         *pen_x = 0;
-        // TODO: the size of the font in slap_text_onto_image32_wrapped should be taken from the face itself
+        // @word-wrap-face
         *pen_y += VODUS_FONT_SIZE;
     }
 

+ 3 - 1
src/vodus_main.cpp

@@ -135,7 +135,9 @@ void render_message(Image32 surface, FT_Face face,
 
             if (*x + emote_width >= (int)surface.width) {
                 *x = 0;
-                // TODO: the size of the font in render_message should be taken from the face itself
+                // TODO(#31): the size of the font in word wrapping should be taken from the face itself
+                //   Right now font size is hardcoded.
+                //   Grep for `@word-wrap-face` to find all of the hardcoded places
                 *y += VODUS_FONT_SIZE;
             }