public static PDFont chooseMatchingHelvetica ( Font font ) { if ( ( font . getStyle ( ) & ( Font . ITALIC | Font . BOLD ) ) == ( Font . ITALIC | Font . BOLD ) ) return PDType1Font . HELVETICA_BOLD_OBLIQUE ; if ( ( font . getStyle ( ) & Font . ITALIC ) == Font . ITALIC ) return PDType1Font . HELVETICA_OBLIQUE ; if ( ( font . getStyle ( ) & Font . BOLD ) == Font . BOLD ) return PDType1Font . HELVETICA_BOLD ; return PDType1Font . HELVETICA ; }
Get a PDType1Font . HELVETICA - variant which matches the given font