// TODO: implement baseline offsets for TrueType fonts
if (baselineOffsets == null){
float[] baselineData = null;
// Temporary workaround:
// Commented out native data initialization, since it can
// cause failures with opening files in multithreaded applications.
//
// TODO: support work with truetype data in multithreaded
// applications.
// If font TrueType data is taken from BASE table
// if ((this.font.getFontHandle() != 0) && (font.getFontType() == FontManager.FONT_TYPE_TT)){
// baselineData = LinuxNativeFont.getBaselineOffsetsNative(font.getFontHandle(), font.getSize(), ascent, descent, units_per_EM);
// }
//
baseLineIndex = 0;
baselineOffsets = new float[]{0, (-ascent+descent)/2, -ascent};
}
return baselineOffsets;