Ultralight  1.0.0
A fast, lightweight, HTML UI engine for native apps.
FontLoader.h
Go to the documentation of this file.
1 #pragma once
15 #include <Ultralight/Defines.h>
16 #include <Ultralight/String16.h>
17 #include <Ultralight/Buffer.h>
18 
19 namespace ultralight {
20 
34 class UExport FontLoader {
35 public:
36  virtual ~FontLoader();
37 
44  virtual String16 fallback_font() const = 0;
45 
61  virtual String16 fallback_font_for_characters(const String16& characters,
62  int weight, bool italic,
63  float size) const = 0;
64 
82  virtual Ref<Buffer> Load(const String16& family, int weight, bool italic,
83  float size) = 0;
84 };
85 
86 } // namespace ultralight
A non-nullable smart pointer.
Definition: RefPtr.h:64
This is a set of common JavaScriptCore Helper functions to simplify sample code.
Definition: App.h:19
The header for the Buffer class.
A UTF-16 string container.
Definition: String16.h:38
The header for the String16 class.
Font Loader interface, used for all font lookup operations.
Definition: FontLoader.h:34