summaryrefslogtreecommitdiffstats
path: root/src/font.h
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-17 18:34:39 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-17 18:34:39 (EDT)
commit7fc0d5367622770593312c4244dff9ccf46e6b03 (patch)
tree378e9d6078de1f9e894be2b1ec5b950eed535e8c /src/font.h
parentac148296c2b39816122924dda32afec4ed08735d (diff)
font_render(): New function
Diffstat (limited to 'src/font.h')
-rw-r--r--src/font.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/font.h b/src/font.h
index 0e22c55..ee3942e 100644
--- a/src/font.h
+++ b/src/font.h
@@ -19,8 +19,8 @@
* along with fbcon2png. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef FONT_H
-#define FONT_H
+#ifndef FONT_H_
+#define FONT_H_
#include <png.h>
@@ -35,4 +35,8 @@ font_get_width(struct font *font) __attribute__((pure));
int
font_get_height(struct font *font) __attribute__((pure));
-#endif /* FONT_H */
+void
+font_render(struct font *font, png_const_colorp fg, png_const_colorp bg,
+ char ch, png_bytepp rows, int row, int col);
+
+#endif /* FONT_H_ */