AUI Framework  master
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AFontFamily Class Reference

Public Types#

enum  Weight {
  W100 , W200 , W300 , W400 ,
  W500 , W600 , W700 , W800 ,
  W900 , NORMAL = W400 , BOLD = W700
}
 

Public Member Functions#

_< AFont > & get (Weight weight, bool isItalic)
 
_< AFontgetEither (bool italicPreferred=false)
 

Member Function Documentation#

◆ getEither()#

_< AFont > AFontFamily::getEither ( bool italicPreferred = false)
inline
Parameters
italicPreferredwhen true, prefers italic fonts over non-italic.
Returns
instance of AFont of this font family with weight of 400. If font family does not have font with weight of 400, the nearest to this weight existing font is returned instead.