Class LocalGlyphRasterizer

java.lang.Object
com.trimblemaps.mapsdk.text.LocalGlyphRasterizer

public class LocalGlyphRasterizer extends Object
LocalGlyphRasterizer is the Android-specific platform implementation used by the portable local_glyph_rasterizer.hpp
  • Method Summary

    Modifier and Type
    Method
    Description
    protected android.graphics.Bitmap
    drawGlyphBitmap(String fontFamily, boolean bold, char glyphID)
    Uses Android-native drawing code to rasterize a single glyph to a square Bitmap which can be returned to portable code for transformation into a Signed Distance Field glyph.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 square Bitmap which can be returned to portable code for transformation into a Signed Distance Field glyph.
      Parameters:
      fontFamily - Font family string to pass to Typeface.create
      bold - If true, use Typeface.BOLD option
      glyphID - 16-bit Unicode BMP codepoint to draw
      Returns:
      Return a Bitmap to be displayed in the requested tile.