All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openhtmltopdf.pdfboxout.fontstore.FontNotFoundException Maven / Gradle / Ivy

Go to download

Openhtmltopdf is a CSS 2.1 renderer written in Java. This artifact supports PDF output with Apache PDF-BOX 2.

The newest version!
package com.openhtmltopdf.pdfboxout.fontstore;

import com.openhtmltopdf.css.value.FontSpecification;

/**
 * An extension thrown when a font isn't found.
 *
 * @author Quentin Ligier
 **/
public class FontNotFoundException extends RuntimeException {

    /**
     * Constructs a new font not found exception with the specified font specification.
     *
     * @param fontSpecification The specification of the font that hasn't been found.
     */
    public FontNotFoundException(final FontSpecification fontSpecification) {
        super("No font for the following specification has been found: " + fontSpecification.toString());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy