#include <cstdint>#include <span>Go to the source code of this file.
Classes | |
| struct | pulp::canvas::TextRasterTuple |
| Surface text contrast and gamma for a policy, the two values SkSurfaceProps carries. More... | |
Namespaces | |
| namespace | pulp |
| namespace | pulp::canvas |
Enumerations | |
| enum class | pulp::canvas::TextRasterPolicy : std::uint8_t { pulp::canvas::legacy , pulp::canvas::chromium } |
| Glyph preblend a surface is created with. More... | |
| enum class | pulp::canvas::FontSmoothing : std::uint8_t { pulp::canvas::auto_smoothing , pulp::canvas::antialiased } |
| CSS -webkit-font-smoothing as it affects glyph rasterization on macOS. More... | |
Functions | |
| constexpr TextRasterTuple | pulp::canvas::text_raster_tuple (TextRasterPolicy policy) |
| constexpr TextRasterPolicy | pulp::canvas::select_text_raster_policy (std::span< const FontSmoothing > nodes) |
| The policy for a surface holding text nodes with these smoothing modes: chromium when ANY node is antialiased, otherwise legacy. | |
Variables | |
| constexpr TextRasterTuple | pulp::canvas::kLegacyTextRaster {0.5f, 0.0f} |
| Skia's compile-time defaults (SK_GAMMA_CONTRAST, SK_GAMMA_EXPONENT = sRGB). | |
| constexpr TextRasterTuple | pulp::canvas::kChromiumTextRaster {0.0f, 1.0f} |