34 #include <Pt/Gfx/Api.h>
36 #include <Pt/String.h>
58 explicit Font(
const std::string& name,
64 Font(
const std::string& name,
const Font& font);
67 const std::string& name()
const;
76 ssize_t angle()
const;
80 friend bool operator==(
const Font& a,
const Font& b);
82 friend bool operator!=(
const Font& a,
const Font& b);
85 friend bool operator<(
const Font& a,
const Font& b);
95 inline bool operator==(
const Font& a,
const Font& b)
97 return a._name == b._name &&
98 a._style == b._style &&
100 a._angle == b._angle;
104 inline bool operator!=(
const Font& a,
const Font& b)
106 return a._name != b._name ||
107 a._style != b._style ||
108 a._size != b._size ||
109 a._angle != b._angle;
113 inline bool operator<(
const Font& a,
const Font& b)
115 if(a._name < b._name)
118 if(a._name > b._name)
121 return a._style < b._style;