Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
typeface.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_
6#define FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_
7
8#include "flutter/fml/macros.h"
11
12namespace impeller {
13
14//------------------------------------------------------------------------------
15/// @brief A typeface, usually obtained from a font-file, on disk describes
16/// the intrinsic properties of the font. Typefaces are rarely used
17/// directly. Instead, font refer to typefaces along with any
18/// modifications applied to its intrinsic properties.
19///
20class Typeface : public Comparable<Typeface> {
21 public:
23
24 virtual ~Typeface();
25
26 virtual bool IsValid() const = 0;
27
28 private:
29 Typeface(const Typeface&) = delete;
30
31 Typeface& operator=(const Typeface&) = delete;
32};
33
34} // namespace impeller
35
36#endif // FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_
A typeface, usually obtained from a font-file, on disk describes the intrinsic properties of the font...
Definition typeface.h:20
virtual bool IsValid() const =0