ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
platform/font.h
Go to the documentation of this file.
1
6#pragma once
7#include <stdbool.h>
8#include <stddef.h>
9#include <stdint.h>
11
12// Resolve a font spec to a usable form for the current platform.
13// spec: NULL/empty → OS-guaranteed default; family name; or absolute path.
14// out: absolute file path on Linux; family name on macOS (passed to CoreText).
15// out_is_path: true if out is an absolute file path, false if it is a family name.
16// out_font_data: non-NULL only for bundled fonts; points to TTF data in memory.
17// out_font_data_size: size of font_data, or 0 if not used.
19 char *out, size_t out_size,
20 bool *out_is_path,
21 const uint8_t **out_font_data,
22 size_t *out_font_data_size);
⚠️‼️ Comprehensive thread-local error context system for ascii-chat
unsigned char uint8_t
Definition common.h:56
asciichat_error_t
Error and exit codes - unified status values (0-255)
Definition error_codes.h:49
asciichat_error_t platform_font_resolve(const char *spec, char *out, size_t out_size, bool *out_is_path, const uint8_t **out_font_data, size_t *out_font_data_size)
ClangTool/LibTooling compatibility shim for stdbool.h.