com.openhtmltopdf.css.style.CssContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openhtmltopdf-core Show documentation
Show all versions of openhtmltopdf-core Show documentation
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.style;
import com.openhtmltopdf.context.StyleReference;
import com.openhtmltopdf.css.value.FontSpecification;
import com.openhtmltopdf.extend.FontContext;
import com.openhtmltopdf.extend.TextRenderer;
import com.openhtmltopdf.render.FSFont;
import com.openhtmltopdf.render.FSFontMetrics;
public interface CssContext {
float getMmPerDot();
int getDotsPerPixel();
float getFontSize2D(FontSpecification font);
float getXHeight(FontSpecification parentFont);
FSFont getFont(FontSpecification font);
// FIXME Doesn't really belong here, but this is
// the only common interface of LayoutContext
// and RenderingContext
StyleReference getCss();
FSFontMetrics getFSFontMetrics(FSFont font);
FontContext getFontContext();
TextRenderer getTextRenderer();
/**
* Returns true if we are laying out the footnote area rather
* than general content.
*/
boolean isInFloatBottom();
}