private Font buildFamilyFont ( final FamilyFont familyFont ) { Font font = null ; if ( familyFont . posture ( ) == null && familyFont . weight ( ) == null ) { font = Font . font ( transformFontName ( familyFont . family ( ) ) , familyFont . size ( ) ) ; } else if ( familyFont . posture ( ) == null ) { font = Font . font ( transformFontName ( familyFont . family ( ) ) , familyFont . weight ( ) , familyFont . size ( ) ) ; } else if ( familyFont . weight ( ) == null ) { font = Font . font ( transformFontName ( familyFont . family ( ) ) , familyFont . posture ( ) , familyFont . size ( ) ) ; } else { font = Font . font ( transformFontName ( familyFont . family ( ) ) , familyFont . weight ( ) , familyFont . posture ( ) , familyFont . size ( ) ) ; } return font ; }
Build a Family Font with name and size .