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 "flutter/fml/macros.h"
10 #include "impeller/geometry/rect.h"
11 
12 namespace 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 ///
20 class Typeface : public Comparable<Typeface> {
21  public:
22  Typeface();
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_
impeller::Typeface::IsValid
virtual bool IsValid() const =0
impeller::Typeface::Typeface
Typeface()
impeller::Typeface::~Typeface
virtual ~Typeface()
impeller::Typeface
A typeface, usually obtained from a font-file, on disk describes the intrinsic properties of the font...
Definition: typeface.h:20
impeller::Comparable
Definition: comparable.h:29
comparable.h
rect.h
impeller
Definition: aiks_blur_unittests.cc:20