forked from external/yambar
This allows us to a) move away from cairo's "toy" API, and b) let the user specify font options in a single font "name" string: Serif:size=10:weight=bold:slant=italic This also allows us to simplify the font code significantly (except for the fontconfig parts...); the font no longer sets itself in a cairo surface - font users do that; the font simply returns a cairo_scaled_font_t. Furthermore, font_clone() has now been simplified to basically just refcount the scaled font. I.e. there's no need to run the full constructor and lookup and instantiate the cairo scaled font again.
6 lines
229 B
C
6 lines
229 B
C
#pragma once
|
|
#include "../particle.h"
|
|
|
|
struct particle *particle_string_new(
|
|
const char *text, size_t max_len, struct font *font, struct rgba foreground,
|
|
int left_margin, int right_margin, const char *on_click_template);
|