Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 The Chromium OS Authors. All rights reserved. |
| 3 | * Use of this source code is governed by a BSD-style license that can be |
| 4 | * found in the LICENSE file. |
| 5 | */ |
| 6 | |
| 7 | #ifndef FONT_H |
| 8 | #define FONT_H |
| 9 | |
Dominik Behr | bb728f3 | 2019-09-03 17:52:13 -0700 | [diff] [blame] | 10 | #include "fb.h" |
| 11 | |
Stéphane Marchesin | af4423b | 2014-08-13 16:39:24 -0700 | [diff] [blame] | 12 | void font_init(int scaling); |
Haixia Shi | 95d680e | 2015-04-27 20:29:17 -0700 | [diff] [blame] | 13 | void font_free(); |
Dominik Behr | bb728f3 | 2019-09-03 17:52:13 -0700 | [diff] [blame] | 14 | void font_fillchar(fb_t *fb, int dst_char_x, int dst_char_y, |
| 15 | uint32_t front_color, uint32_t back_color); |
| 16 | void font_render(fb_t *fb, int dst_char_x, int dst_char_y, |
| 17 | uint32_t ch, uint32_t front_color, |
Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 18 | uint32_t back_color); |
Stéphane Marchesin | 00ff187 | 2015-12-14 13:40:09 -0800 | [diff] [blame] | 19 | void font_get_size(uint32_t* char_width, uint32_t* char_height); |
Haixia Shi | 9528587 | 2016-11-08 15:26:35 -0800 | [diff] [blame] | 20 | int font_get_scaling(); |
Stéphane Marchesin | ae37e6c | 2014-08-08 18:19:40 -0700 | [diff] [blame] | 21 | |
| 22 | #endif |