NovaSVG 0.11.5
An SVG library
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1#ifndef NOVAVG_FONT_H
2#define NOVAVG_FONT_H
3#pragma once
4
5// Fonts: registering a font file so text can use it. Nothing here knows SVG.
6
7#include "../config.h"
8
9#include <string>
10
11namespace nova::vg {
12
23NOVA_API int add_font_file(const std::string& path);
24
38
41
42} // namespace nova::vg
43
44#endif // NOVAVG_FONT_H
#define NOVA_API
Definition config.h:29
Definition svg.h:56
bool system_fonts_enabled()
The setting of set_system_fonts_enabled().
void set_system_fonts_enabled(bool enabled)
Whether the fonts installed on the machine are used for text. They are by default.
int add_font_file(const std::string &path)
Registers every face in a font file with the font cache that text rendering and measure_text() use.