diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-12-01 11:53:43 -0800 |
---|---|---|
committer | Chris Loer <chris.loer@gmail.com> | 2017-12-01 11:53:43 -0800 |
commit | 5257752b44f942085afed70764a18b21bb72baba (patch) | |
tree | 68922bfe3bbeef509b84876de62dabef31588dbc /platform/android/src/text/local_glyph_rasterizer_impl.hpp | |
parent | 5fd4e637444a24003f1d0866eabc005323ae6464 (diff) | |
download | qtlocation-mapboxgl-upstream/tinysdf-android.tar.gz |
Add font family configuration option for LocalGlyphRasterizerupstream/tinysdf-android
Add support for "bold" font stacks
Somewhat rationalize class names, add comments.
Diffstat (limited to 'platform/android/src/text/local_glyph_rasterizer_impl.hpp')
-rw-r--r-- | platform/android/src/text/local_glyph_rasterizer_impl.hpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/platform/android/src/text/local_glyph_rasterizer_impl.hpp b/platform/android/src/text/local_glyph_rasterizer_impl.hpp index 2e14f87e34..38d98d5368 100644 --- a/platform/android/src/text/local_glyph_rasterizer_impl.hpp +++ b/platform/android/src/text/local_glyph_rasterizer_impl.hpp @@ -4,16 +4,24 @@ #include <jni/jni.hpp> +/* + android::LocalGlyphRasterizer is the JNI wrapper of + com/mapbox/mapboxsdk/text/LocalGlyphRasterizer + + mbgl::LocalGlyphRasterizer is the portable interface + Both implementations are in local_glyph_rasterizer.cpp + */ + namespace mbgl { namespace android { -class AndroidLocalGlyphRasterizer { +class LocalGlyphRasterizer { public: - static PremultipliedImage drawGlyphBitmap(const FontStack&, unsigned short glyphID, Size size); + static PremultipliedImage drawGlyphBitmap(const std::string& fontFamily, const bool bold, const char16_t glyphID); static constexpr auto Name() { return "com/mapbox/mapboxsdk/text/LocalGlyphRasterizer"; }; - static jni::Class<AndroidLocalGlyphRasterizer> javaClass; + static jni::Class<LocalGlyphRasterizer> javaClass; static void registerNative(jni::JNIEnv&); |