| Flutter Impeller |

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 "impeller/base/comparable.h"
9
10 namespace impeller {
11
12 //------------------------------------------------------------------------------
13 /// @brief A typeface, usually obtained from a font-file, on disk describes
14 /// the intrinsic properties of the font. Typefaces are rarely used
15 /// directly. Instead, font refer to typefaces along with any
16 /// modifications applied to its intrinsic properties.
17 ///
18 class Typeface : public Comparable<Typeface> {
19 public:
20 Typeface();
21
22 virtual ~Typeface();
23
24 virtual bool IsValid() const = 0;
25
26 private:
27 Typeface(const Typeface&) = delete;
28
29 Typeface& operator=(const Typeface&) = delete;
30 };
31
32 } // namespace impeller
33
34 #endif // FLUTTER_IMPELLER_TYPOGRAPHER_TYPEFACE_H_
impeller::Comparable
Definition: comparable.h:29
impeller::Typeface
A typeface, usually obtained from a font-file, on disk describes the intrinsic properties of the font...
Definition: typeface.h:18
impeller::Typeface::Typeface
Typeface()
impeller::Typeface::IsValid
virtual bool IsValid() const =0
impeller::Typeface::~Typeface
virtual ~Typeface()
comparable.h
impeller
Definition: allocation.cc:12