Flutter Impeller
impeller::ScaledFont Struct Reference

A font and a scale. Used as a key that represents a typeface within a glyph atlas. More...

#include <font_glyph_pair.h>

Classes

struct  Equal
 

Public Attributes

Font font
 
Rational scale
 

Friends

template<typename H >
AbslHashValue (H h, const ScaledFont &sf)
 

Detailed Description

A font and a scale. Used as a key that represents a typeface within a glyph atlas.

Definition at line 36 of file font_glyph_pair.h.

Friends And Related Function Documentation

◆ AbslHashValue

template<typename H >
H AbslHashValue ( h,
const ScaledFont sf 
)
friend

Definition at line 41 of file font_glyph_pair.h.

41  {
42  return H::combine(std::move(h), sf.font.GetHash(), sf.scale.GetHash());
43  }

Member Data Documentation

◆ font

Font impeller::ScaledFont::font

◆ scale

Rational impeller::ScaledFont::scale

The documentation for this struct was generated from the following file: