java.lang.Object
org.htmlunit.platform.font.NoOpFontUtil
- All Implemented Interfaces:
FontUtil
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Simple no op
Simple no op
FontUtil implementation.- Author:
- Ronald Brill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountLines(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.
-
Constructor Details
-
NoOpFontUtil
public NoOpFontUtil()
-
-
Method Details
-
countLines
Description copied from interface:FontUtilINTERNAL 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:
countLinesin interfaceFontUtil- Parameters:
content- the text to be layoutedpixelWidth- the max width of the resulting text blockfontSize- the font size to be used- Returns:
- the number of lines the layouted text will have
-