).getBaseDataObject()
);
// ItalicAngle.
fontDescriptor.put(
PdfName.ItalicAngle,
new PdfReal(metrics.italicAngle)
);
// Ascent.
fontDescriptor.put(
PdfName.Ascent,
new PdfReal(
metrics.ascender == 0
? metrics.sTypoAscender * metrics.unitNorm
: metrics.ascender * metrics.unitNorm
)
);
// Descent.
fontDescriptor.put(
PdfName.Descent,
new PdfReal(
metrics.descender == 0
? metrics.sTypoDescender * metrics.unitNorm
: metrics.descender * metrics.unitNorm
)
);
// Leading.
fontDescriptor.put(
PdfName.Leading,
new PdfReal(metrics.sTypoLineGap * metrics.unitNorm)
);
// CapHeight.
fontDescriptor.put(
PdfName.CapHeight,
new PdfReal(metrics.sCapHeight * metrics.unitNorm)
);
// StemV.
/*
NOTE: '100' is just a rule-of-thumb value, 'cause I've still to solve the
'cvt' table puzzle (such a harsh headache!) for TrueType fonts...