#include <cstdint>
#include <memory>
#include <string>
#include <cctype>
#include <vector>
#include "../config.h"
#include <stb/color.hpp>
#include <stb/image.hpp>
#include <stb/outline.hpp>
#include "../vg/geometry.h"
#include "foreign_object.h"
Go to the source code of this file.
|
| #define | NOVA_VERSION_MAJOR 0 |
| #define | NOVA_VERSION_MINOR 11 |
| #define | NOVA_VERSION_PATCH 5 |
| #define | NOVA_VERSION_ENCODE(major, minor, patch) |
| #define | NOVA_VERSION NOVA_VERSION_ENCODE(NOVA_VERSION_MAJOR, NOVA_VERSION_MINOR, NOVA_VERSION_PATCH) |
| #define | NOVA_VERSION_XSTRINGIZE(major, minor, patch) |
| #define | NOVA_VERSION_STRINGIZE(major, minor, patch) |
| #define | NOVA_VERSION_STRING NOVA_VERSION_STRINGIZE(NOVA_VERSION_MAJOR, NOVA_VERSION_MINOR, NOVA_VERSION_PATCH) |
|
| int | nova::svg::version () |
| | Returns the version of the novasvg library encoded in a single integer.
|
| std::string | nova::svg::version_string () |
| | Returns the novasvg library version as a human-readable string in "X.Y.Z" format.
|
| bool | nova::svg::is_valid_selector (const std::string &selector) |
| | Measures utf8_text with the same font lookup, shaping and kerning that <text> uses.
|
| text_metrics | nova::svg::measure_text (const std::string &utf8_text, const std::string &font_family, float font_size, bool bold=false, bool italic=false) |
| text_metrics | nova::svg::measure_text (const std::string &utf8_text, const std::string &font_family, float font_size, int weight, bool italic=false) |
| | The same, for a numeric font-weight (300, 550, 700: a variable font is set to that weight).
|
◆ NOVA_VERSION
Definition at line 43 of file svg.h.
◆ NOVA_VERSION_ENCODE
| #define NOVA_VERSION_ENCODE |
( |
| major, |
|
|
| minor, |
|
|
| patch ) |
Value:(((major) * 10000) + ((minor) * 100) + ((patch) * 1))
Definition at line 42 of file svg.h.
◆ NOVA_VERSION_MAJOR
| #define NOVA_VERSION_MAJOR 0 |
Definition at line 38 of file svg.h.
◆ NOVA_VERSION_MINOR
| #define NOVA_VERSION_MINOR 11 |
Definition at line 39 of file svg.h.
◆ NOVA_VERSION_PATCH
| #define NOVA_VERSION_PATCH 5 |
Definition at line 40 of file svg.h.
◆ NOVA_VERSION_STRING
Definition at line 47 of file svg.h.
◆ NOVA_VERSION_STRINGIZE
| #define NOVA_VERSION_STRINGIZE |
( |
| major, |
|
|
| minor, |
|
|
| patch ) |
Value:
#define NOVA_VERSION_XSTRINGIZE(major, minor, patch)
Definition at line 46 of file svg.h.
◆ NOVA_VERSION_XSTRINGIZE
| #define NOVA_VERSION_XSTRINGIZE |
( |
| major, |
|
|
| minor, |
|
|
| patch ) |
Value:
Definition at line 45 of file svg.h.