* Set the font weight
*
* @param weight the font weight
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontFacet is read-only
*/
default void setWeight(int weight) {
throw new UnsupportedOperationException("FontFacet is read-only.");
* Set the font posture
*
* @param italic {@code true} for italic, {@code false} for regular
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontFacet is read-only
*/
default void setItalic(boolean italic) {
throw new UnsupportedOperationException("FontFacet is read-only.");
*
* @param typeface the full name of the font, when {@code null} removes the font definition -
* removal is implementation specific
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
*/
default void setTypeface(String typeface) {
throw new UnsupportedOperationException("FontInfo is read-only.");
* Sets the charset
*
* @param charset the charset
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
*/
default void setCharset(FontCharset charset) {
throw new UnsupportedOperationException("FontInfo is read-only.");
* Sets the font family class
*
* @param family the font family class
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
*/
default void setFamily(FontFamily family) {
throw new UnsupportedOperationException("FontInfo is read-only.");
/**
* Set the panose in binary form
* @param panose the panose bytes
+ * @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
*/
default void setPanose(byte[] panose) {
throw new UnsupportedOperationException("FontInfo is read-only.");
} else if (obj instanceof Double) {
obj = (Double) obj / divider.doubleValue();
} else {
- throw new UnsupportedOperationException();
+ throw new UnsupportedOperationException("cannot scaleInput of type " + obj.getClass());
}
}
return obj;