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

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

## Member Data Documentation

## ◆ font

Font impeller::ScaledFont::font

Definition at line 42 of file font_glyph_pair.h.

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

## ◆ scale

Rational impeller::ScaledFont::scale

Definition at line 43 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