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

com.openhtmltopdf.css.value.FontSpecification Maven / Gradle / Ivy

Go to download

Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.

The newest version!
package com.openhtmltopdf.css.value;

import com.openhtmltopdf.css.constants.IdentValue;

import java.util.Arrays;

public class FontSpecification {
    public float size;
    public IdentValue fontWeight;
    public String[] families;
    public IdentValue fontStyle;
    public IdentValue variant;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("Font specification: ");
        sb
                .append(" families: " + Arrays.asList(families).toString())
                .append(" size: " + size)
                .append(" weight: " + fontWeight)
                .append(" style: " + fontStyle)
                .append(" variant: " + variant);
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy