class FontToolTip implements ToolTip
{
    private static final Logger LOG = LogManager.getLogger(FontToolTip.class);
    private String markup;

    /**
     * Constructor.
     * @param resources PDResources instance. Which corresponds the resource dictionary containing
     *                  the concern font.
     * @param rowText String instance of the tooltip row.
     */
    FontToolTip(PDResources resources, String rowText)
    {
        initUI(extractFontReference(rowText), resources);
    }

    private void initUI(String fontReferenceName, PDResources resources)
    {<FILL_FUNCTION_BODY>}

    private String extractFontReference(String rowText)
    {
        return rowText.trim().split(" ")[0].substring(1);
    }

    @Override
    public String getToolTipText()
    {
        return markup;
    }
}

        PDFont font = null;
        for (COSName name: resources.getFontNames())
        {
            if (name.getName().equals(fontReferenceName))
            {
                try
                {
                    font = resources.getFont(name);
                }
                catch (IOException e)
                {
                    LOG.error(e.getMessage(), e);
                }
            }
        }
        if (font != null)
        {
            markup = "<html>" + font.getName() + "</html>";
        }
    
<no_super_class>