forked from google/skia
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow to configure font rasterisation settings in paragraph
fix viewer compilation
- Loading branch information
1 parent
edffd94
commit 3a00e26
Showing
7 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2019 Google LLC. | ||
#ifndef FontRastrSettings_DEFINED | ||
#define FontRastrSettings_DEFINED | ||
|
||
#include "include/core/SkFont.h" | ||
#include "include/core/SkFontTypes.h" | ||
|
||
namespace skia { | ||
namespace textlayout { | ||
|
||
struct FontRastrSettings { | ||
FontRastrSettings() { | ||
fEdging = SkFont::Edging::kAntiAlias; | ||
fHinting = SkFontHinting::kSlight; | ||
fSubpixel = true; | ||
} | ||
|
||
SkFont::Edging fEdging; | ||
SkFontHinting fHinting; | ||
bool fSubpixel; | ||
}; | ||
|
||
|
||
} // namespace textlayout | ||
} // namespace skia | ||
|
||
#endif // Metrics_DEFINED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters