Geomajas Community Documentation

10.5. TextService

Utility functions for calculating text and font related parameters server-side. These parameters could in principle be calculated more accurately on the displaying device itself, but unfortunately there is no support for this in browser environments.

  • Rectangle2D getStringBounds(String text, FontStyleInfo fontStyle) : get the bounds for the given string.