blob: 518058f5bb112d7d75fcf68fde7c8111819c9c82 [file] [log] [blame]
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -07001/*
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 Behrbb728f32019-09-03 17:52:13 -070010#include "fb.h"
11
Stéphane Marchesinaf4423b2014-08-13 16:39:24 -070012void font_init(int scaling);
Haixia Shi95d680e2015-04-27 20:29:17 -070013void font_free();
Dominik Behrbb728f32019-09-03 17:52:13 -070014void font_fillchar(fb_t *fb, int dst_char_x, int dst_char_y,
15 uint32_t front_color, uint32_t back_color);
16void font_render(fb_t *fb, int dst_char_x, int dst_char_y,
17 uint32_t ch, uint32_t front_color,
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070018 uint32_t back_color);
Stéphane Marchesin00ff1872015-12-14 13:40:09 -080019void font_get_size(uint32_t* char_width, uint32_t* char_height);
Haixia Shi95285872016-11-08 15:26:35 -080020int font_get_scaling();
Stéphane Marchesinae37e6c2014-08-08 18:19:40 -070021
22#endif