Hershey Vector Fonts 0.1.0
A C++ library for working with the Hershey vector fonts
Loading...
Searching...
No Matches
fontfamily.hpp
Go to the documentation of this file.
1#ifndef FONT_FAMILY_HPP
2#define FONT_FAMILY_HPP
3
8#include <fstream>
9#include <iostream>
10#include <string>
11#include <unordered_map>
12
13#include "font.hpp"
14#include "glyph.hpp"
15
16namespace Hershey {
17
22
23 std::string name;
24 bool has_rm;
25 bool has_it;
26 bool has_sc;
27 bool has_gr;
28 std::unordered_map<std::string, Font> fonts;
30 private:
34 void load_fonts();
35
36 public:
46 FontFamily(std::string name, bool rm, bool it, bool sc, bool gr);
47
54 Font get_font(std::string font);
55};
56} // namespace Hershey
57
58#endif
A Hershey vector font family.
Definition fontfamily.hpp:21
Font get_font(std::string font)
Get a font.
Definition fontfamily.cpp:25
A Hershey vector font.
Definition font.hpp:19