diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-11-21 15:12:07 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-12-11 10:43:00 -0800 |
commit | 1661af1cb409505bb362e2274cb61f097ad25864 (patch) | |
tree | 184b9000d4b5a2f8760468eaa018adc9d6de24ae /platform/default | |
parent | 730054276ed6a5dc7ba9d19765b8457a818854f7 (diff) | |
download | qtlocation-mapboxgl-1661af1cb409505bb362e2274cb61f097ad25864.tar.gz |
[core] Enable local glyph generation using TinySDF.
- Platform-specific LocalGlyphRasterizer is responsible for deciding which glyphs to rasterize locally and for implementing the rasterization.
- Default platform implementation doesn't locally generate any glyphs -> no behavior change
- Unit test uses StubLocalGlyphRasterizer, which returns a single fixed bitmap for all CJK glyphs
- Rename glyph_loader.test to glyph_manager.test
Diffstat (limited to 'platform/default')
-rw-r--r-- | platform/default/local_glyph_rasterizer.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/platform/default/local_glyph_rasterizer.cpp b/platform/default/local_glyph_rasterizer.cpp new file mode 100644 index 0000000000..7ace6cbfb1 --- /dev/null +++ b/platform/default/local_glyph_rasterizer.cpp @@ -0,0 +1,13 @@ +#include <mbgl/text/local_glyph_rasterizer.hpp> + +namespace mbgl { + +bool LocalGlyphRasterizer::canRasterizeGlyph(const FontStack&, GlyphID) { + return false; +} + +Glyph LocalGlyphRasterizer::rasterizeGlyph(const FontStack&, GlyphID) { + return Glyph(); +} + +} // namespace mbgl |