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

org.jpedal.fonts.CIDFDSelect Maven / Gradle / Ivy

There is a newer version: 7.15.25
Show newest version
/*
 * ===========================================
 * 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@
 *
 * ---------------
 * CIDFDSelect.java
 * ---------------
 */
package org.jpedal.fonts;

public class CIDFDSelect {

	public int[] fdSelect;
	public byte[] raw;

	public CIDFDSelect(final int[] fdSelect, final byte[] raw) {
		this.fdSelect = fdSelect;
		this.raw = raw;
	}

	public int getFDIndex(final int glyphIndex) {
		if (glyphIndex < 0 || glyphIndex >= fdSelect.length) {
			return -1;
		}
		return fdSelect[glyphIndex];
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy