| Flutter Impeller |

Classes | Public Attributes | Friends | List of all members
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
Scalar | 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 40 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 45 of file font_glyph_pair.h.

45 {
46 return H::combine(std::move(h), sf.font.GetHash(), sf.scale);
47 }

## Member Data Documentation

## ◆ font

Font impeller::ScaledFont::font

Definition at line 41 of file font_glyph_pair.h.

Referenced by impeller::DrawGlyph(), and impeller::ScaledFont::Equal::operator()().

## ◆ scale

Scalar impeller::ScaledFont::scale

Definition at line 42 of file font_glyph_pair.h.

Referenced by impeller::DrawGlyph(), and impeller::ScaledFont::Equal::operator()().

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

- impeller/typographer/font_glyph_pair.h