org.jpedal.fonts.glyph.GlyphFactory Maven / Gradle / Ivy
/*
* ===========================================
* Java Pdf Extraction Decoding Access Library
* ===========================================
*
* Project Info: http://www.idrsolutions.com
* Help section for developers at http://www.idrsolutions.com/support/
*
* (C) Copyright 1997-2017 IDRsolutions and Contributors.
*
* This file is part of JPedal/JPDF2HTML5
*
@LICENSE@
*
* ---------------
* GlyphFactory.java
* ---------------
*/
package org.jpedal.fonts.glyph;
import org.jpedal.fonts.tt.FontFile2;
import org.jpedal.fonts.tt.Glyf;
import org.jpedal.fonts.tt.Hmtx;
import org.jpedal.fonts.tt.hinting.TTVM;
/**
* template for glyph creation routines
*/
public interface GlyphFactory {
/**
* @return
*/
PdfGlyph getGlyph();
/**
* @param f
* @param g
* @param h
* @param i
* @param j
* @param k
*/
void curveTo(float f, float g, float h, float i, float j, float k);
/**
*
*/
void closePath();
/**
* @param f
* @param g
*/
void moveTo(float f, float g);
/**
* @param f
* @param g
*/
void lineTo(float f, float g);
/**
* @param f
*/
void setYMin(float f);
int getLSB();
boolean useFX();
PdfGlyph getGlyph(Glyf currentGlyf, FontFile2 fontTable, Hmtx currentHmtx, int idx, float f, TTVM vm, String baseFontName);
}