fs |= FontStyle.Bold;
}
if((style & java.awt.Font.ITALIC) != 0){
fs |= FontStyle.Italic;
}
FontStyle fontStyle = FontStyle.wrap(fs);
if(!family.IsStyleAvailable(fontStyle)){
// Some Fonts (for example Aharoni) does not support Regular style. This throw an exception else it is not
// documented.
if(family.IsStyleAvailable(REGULAR)){
fontStyle = REGULAR;