package org.verapdf.model.impl.pb.external;

import org.apache.pdfbox.pdmodel.common.PDStream;
import org.verapdf.model.external.FontProgram;

/**
 * @author Timur Kamalov
 */
public class PBoxFontProgram extends PBoxExternal implements FontProgram {

	public static final String FONT_PROGRAM_TYPE = "FontProgram";

	private PDStream fontProgram;

	//for validating widths array in simple fonts
	private Long firstChar;
	private Long lastChar;
	private Long widthSize;

	public PBoxFontProgram(PDStream fontProgram) {
		super();
		setType(FONT_PROGRAM_TYPE);
		this.fontProgram = fontProgram;
	}

	public PBoxFontProgram(PDStream fontProgram, Long firstChar, Long lastChar, Long widthSize) {
		this(fontProgram);
		this.firstChar = firstChar;
		this.lastChar = lastChar;
		this.widthSize = widthSize;
	}

	@Override
	public Boolean getareReferencedGlyphsPresent() {
		return null;
	}

	@Override
	public Boolean getareWidthsConsistent() {
		return null;
	}

}
@@ -802,158 +802,5 @@
 %09%7D%0A%0A
-%09@Override%0A%09public Boolean getareReferencedGlyphsPresent() %7B%0A%09%09return null;%0A%09%7D%0A%0A%09@Override%0A%09public Boolean getareWidthsConsistent() %7B%0A%09%09return null;%0A%09%7D%0A%0A
 %7D

Fix for recent changes in the model (just removed two methods).