diff options
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&); |