byFontName method
Implementation
CPDFTypeface byFontName(String fontName) {
switch (fontName.toLowerCase()) {
case 'courier':
return CPDFTypeface.courier;
case 'helvetica':
return CPDFTypeface.helvetica;
case 'times-roman':
return CPDFTypeface.timesRoman;
default:
return CPDFTypeface.courier;
}
}