byFontName method

CPDFTypeface byFontName(
  1. String fontName
)

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;
  }
}