NoTeX 1.0.0
A modern noteworthy LaTeX template
Loading...
Searching...
No Matches
assets.hpp
Go to the documentation of this file.
1
13
14#pragma once
15
16#include <optional>
17#include <string_view>
18#include <vector>
19
20namespace notex::assets {
21
26 std::string_view name;
28 std::string_view content;
29};
30
42 std::string_view name;
43 std::string_view hex_content;
44};
45
48const std::vector<EmbeddedFile>& latex_files();
49
56std::optional<EmbeddedFile> find_latex_file(std::string_view name);
57
60const std::vector<EmbeddedFile>& font_files();
61
68std::optional<EmbeddedFile> find_font_file(std::string_view name);
69
70} // namespace notex::assets
std::optional< EmbeddedFile > find_latex_file(std::string_view name)
Looks up a single embedded LaTeX template file by name.
Definition assets.cpp:63
const std::vector< EmbeddedFile > & latex_files()
Definition assets.cpp:56
const std::vector< EmbeddedFile > & font_files()
Definition assets.cpp:70
std::optional< EmbeddedFile > find_font_file(std::string_view name)
Looks up a single embedded font file by name.
Definition assets.cpp:84
std::string_view name
Definition assets.hpp:26
std::string_view content
Full contents of the file.
Definition assets.hpp:28
One binary file embedded into the binary as hexadecimal text.
Definition assets.hpp:41
std::string_view name
File name (e.g. "NotoSans.ttf").
Definition assets.hpp:42
std::string_view hex_content
Contents, encoded as lowercase hex.
Definition assets.hpp:43