int (Font font) { assert GET_FONT_2D_METHOD != null; assert GET_WEIGHT_METHOD != null; try { Font2D font2d = (Font2D)GET_FONT_2D_METHOD.invoke(font); return (Integer)GET_WEIGHT_METHOD.invoke(font2d); } catch (Throwable t) { LOG.error(t); } return Font2D.FWEIGHT_NORMAL; }