Module org.htmlunit

Class AwtFontUtil

java.lang.Object
org.htmlunit.platform.font.AwtFontUtil
All Implemented Interfaces:
FontUtil

public class AwtFontUtil extends Object implements FontUtil
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Author:
Ronald Brill
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countLines(String content, int pixelWidth, String fontSize)
    INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
    Helper that layouts the text regarding the pixelWith and the fontSize and counts the resulting lines.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AwtFontUtil

      public AwtFontUtil()
  • Method Details

    • countLines

      public int countLines(String content, int pixelWidth, String fontSize)
      Description copied from interface: FontUtil
      INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
      Helper that layouts the text regarding the pixelWith and the fontSize and counts the resulting lines.
      Specified by:
      countLines in interface FontUtil
      Parameters:
      content - the text to be layouted
      pixelWidth - the max width of the resulting text block
      fontSize - the font size to be used
      Returns:
      the number of lines the layouted text will have