Package com.trimblemaps.mapsdk.text
Class LocalGlyphRasterizer
java.lang.Object
com.trimblemaps.mapsdk.text.LocalGlyphRasterizer
LocalGlyphRasterizer is the Android-specific platform implementation used
by the portable local_glyph_rasterizer.hpp
-
Method Summary
Modifier and TypeMethodDescriptionprotected android.graphics.BitmapdrawGlyphBitmap(String fontFamily, boolean bold, char glyphID) Uses Android-native drawing code to rasterize a single glyph to a squareBitmapwhich can be returned to portable code for transformation into a Signed Distance Field glyph.
-
Method Details
-
drawGlyphBitmap
@WorkerThread protected android.graphics.Bitmap drawGlyphBitmap(String fontFamily, boolean bold, char glyphID) Uses Android-native drawing code to rasterize a single glyph to a squareBitmapwhich can be returned to portable code for transformation into a Signed Distance Field glyph.- Parameters:
fontFamily- Font family string to pass to Typeface.createbold- If true, use Typeface.BOLD optionglyphID- 16-bit Unicode BMP codepoint to draw- Returns:
- Return a
Bitmapto be displayed in the requested tile.
-