Use FontData everywhere
This commit is contained in:
parent
4fe52ef7f6
commit
a99b0e920d
14 changed files with 51 additions and 46 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <modules/skparagraph/include/TextStyle.h>
|
||||
#include "cereal/archives/portable_binary.hpp"
|
||||
#include "../SharedTypes.hpp"
|
||||
#include "../FontData.hpp"
|
||||
|
||||
namespace RichText {
|
||||
|
||||
|
|
@ -108,6 +109,8 @@ class SizeTextStyleModifier : public TextStyleModifier {
|
|||
|
||||
class FontFamiliesTextStyleModifier : public TextStyleModifier {
|
||||
public:
|
||||
static std::shared_ptr<FontData> globalFontData;
|
||||
|
||||
FontFamiliesTextStyleModifier() = default;
|
||||
FontFamiliesTextStyleModifier(const std::vector<SkString>& initFamilies);
|
||||
virtual ModifierType get_type() const override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue