Module org.htmlunit

Class NoOpFontUtil

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

public class NoOpFontUtil extends Object implements FontUtil
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Simple no op FontUtil implementation.
Author:
Ronald Brill
  • Constructor Details

    • NoOpFontUtil

      public NoOpFontUtil()
  • 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