font: set FT load and render flags from FontConfig properties

This commit is contained in:
Daniel Eklöf 2019-07-29 20:10:55 +02:00
parent fe882bddba
commit 4302d3eb68
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 129 additions and 21 deletions

4
font.h
View file

@ -1,9 +1,11 @@
#pragma once
#include <stdbool.h>
#include <threads.h>
#include "terminal.h"
bool font_from_name(const char *name, struct font *result);
bool font_glyph_for_utf8(
const struct font *font, const char *utf8, struct glyph *glyph);
struct font *font, const char *utf8, struct glyph *glyph);
void font_destroy(struct font *font);