Hershey Vector Fonts 0.1.0
A C++ library for working with the Hershey vector fonts
Loading...
Searching...
No Matches
Hershey::FontFamily Class Reference

A Hershey vector font family. More...

#include <fontfamily.hpp>

Public Member Functions

 FontFamily (std::string name, bool rm, bool it, bool sc, bool gr)
 Create a new font family.
 
Font get_font (std::string font)
 Get a font.
 

Detailed Description

A Hershey vector font family.

Constructor & Destructor Documentation

◆ FontFamily()

FontFamily::FontFamily ( std::string  name,
bool  rm,
bool  it,
bool  sc,
bool  gr 
)

Create a new font family.

Parameters
nameThe name of the font family.
rmWhether the family contains a roman font.
itWhether the family contains a italic font.
scWhether the family contains a script font.
grWhether the family contains a Greek font.

Member Function Documentation

◆ get_font()

Font FontFamily::get_font ( std::string  font)

Get a font.

Parameters
fontThe font to get.
Return values
Therequested font.

The documentation for this class was generated from the following files: