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 >
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 69 of file font_glyph_pair.h.

Friends And Related Function Documentation

◆ AbslHashValue

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

Definition at line 74 of file font_glyph_pair.h.

74  {
75  return H::combine(std::move(h), sf.font.GetHash(), sf.scale.GetHash());
76  }

Member Data Documentation

◆ font

◆ scale

Rational impeller::ScaledFont::scale

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