From 5257752b44f942085afed70764a18b21bb72baba Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Fri, 1 Dec 2017 11:53:43 -0800 Subject: Add font family configuration option for LocalGlyphRasterizer Add support for "bold" font stacks Somewhat rationalize class names, add comments. --- platform/android/src/text/local_glyph_rasterizer_impl.hpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'platform/android/src/text/local_glyph_rasterizer_impl.hpp') 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 +/* + 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 javaClass; + static jni::Class javaClass; static void registerNative(jni::JNIEnv&); -- cgit v1.2.1