Lines Matching refs:style

151  * associated with a font face, each differing in size, style, transform
310 * The plain style constant.
315 * The bold style constant. This can be combined with the other style
321 * The italicized style constant. This can be combined with the other
322 * style constants (except PLAIN) for mixed styles.
375 * The style of this <code>Font</code>, as passed to the constructor.
376 * This style can be PLAIN, BOLD, ITALIC, or BOLD+ITALIC.
382 protected int style;
453 this.peer = tk.getFontPeer(name, style);
475 if ((style & BOLD) != 0) {
479 if ((style & ITALIC) != 0) {
495 return fm.findFont2D(name, style,
499 fm.findFont2D(name, style,
510 * Creates a new <code>Font</code> from the specified name, style and
514 * It is used together with the style to find an appropriate font face.
515 * When a font family name is specified, the style argument is used to
517 * name is specified, the face's style and the style argument are
519 * For example if face name "Arial Bold" is specified with style
523 * The style argument is merged with the specified face's style, not
525 * This means, specifying a bold face and a bold style does not
527 * style does not lighten the font.
529 * If no face for the requested style can be found, the font system
530 * may apply algorithmic styling to achieve the desired style.
555 * @param style the style constant for the {@code Font}
556 * The style argument is an integer bitmask that may
559 * If the style argument does not conform to one of the expected
560 * integer bitmasks then the style is set to {@code PLAIN}.
566 public Font(String name, int style, int size) {
568 this.style = (style & ~0x03) == 0 ? style : 0;
573 private Font(String name, int style, float sizePts) {
575 this.style = (style & ~0x03) == 0 ? style : 0;
581 private Font(String name, int style, float sizePts,
583 this(name, style, sizePts);
588 * in a different style, then also check if its a CompositeFont
589 * and if so build a new CompositeFont from components of that style.
596 handle.font2D.getStyle() != style) {
598 this.font2DHandle = fm.getNewComposite(null, style, handle);
617 this.style = Font.PLAIN;
630 * need special attention: family/face and style.
632 * fonts for the new values of family and style.
634 * JDK can often synthesise a different style (bold from plain
642 * oldStyle = -1 will be interpreted as the style is unchanged.
709 this.style = font.style;
760 if (values.getWeight() >= 2f) this.style |= BOLD; // not == 2f
761 if (values.getPosture() >= .2f) this.style |= ITALIC; // not == .2f
800 return new Font(values, font.name, font.style,
811 return new Font(values, font.name, font.style,
847 * created with a point size of 1 and style {@link #PLAIN PLAIN}.
1006 * created with a point size of 1 and style {@link #PLAIN PLAIN}.
1282 * Returns the style of this <code>Font</code>. The style can be
1284 * @return the style of this <code>Font</code>
1291 return style;
1333 * Indicates whether or not this <code>Font</code> object's style is
1342 return style == 0;
1346 * Indicates whether or not this <code>Font</code> object's style is
1349 * style is BOLD;
1355 return (style & BOLD) != 0;
1359 * Indicates whether or not this <code>Font</code> object's style is
1362 * style is ITALIC;
1368 return (style & ITALIC) != 0;
1423 * <li><em>fontname-style-pointsize</em>
1425 * <li><em>fontname-style</em>
1427 * <li><em>fontname style pointsize</em>
1429 * <li><em>fontname style</em>
1432 * in which <i>style</i> is one of the four
1448 * If a style name field is not one of the valid style strings, it is
1449 * interpreted as part of the font name, and the default style is used.
1453 * which separates a valid pointsize, or a valid style name from
1455 * Null (empty) pointsize and style fields are treated
1460 * <code>style</code> or <code>pointsize</code> fields are not present in
1468 * The default size is 12 and the default style is PLAIN.
1471 * specify a valid style, the returned Font has a style of PLAIN.
1480 * PLAIN style.
1514 * start of the style string perhaps this is the style */
1601 hash = name.hashCode() ^ style ^ size;
1635 style == font.style &&
1682 return getClass().getName() + "[family=" + getFamily() + ",name=" + name + ",style=" +
1858 * <code>Font</code> object and applying a new style and size.
1859 * @param style the style for the new <code>Font</code>
1864 public Font deriveFont(int style, float size){
1866 return new Font(name, style, size, createdFont, font2DHandle);
1869 int oldStyle = (this.style != style) ? this.style : -1;
1870 applyStyle(style, newValues);
1877 * <code>Font</code> object and applying a new style and transform.
1878 * @param style the style for the new <code>Font</code>
1886 public Font deriveFont(int style, AffineTransform trans){
1888 int oldStyle = (this.style != style) ? this.style : -1;
1889 applyStyle(style, newValues);
1903 return new Font(name, style, size, createdFont, font2DHandle);
1928 * <code>Font</code> object and applying a new style to it.
1929 * @param style the style for the new <code>Font</code>
1933 public Font deriveFont(int style){
1935 return new Font(name, style, size, createdFont, font2DHandle);
1938 int oldStyle = (this.style != style) ? this.style : -1;
1939 applyStyle(style, newValues);
1960 return new Font(newValues, name, style, createdFont, font2DHandle);
2121 * @return the angle of the ITALIC style of this <code>Font</code>.
2674 private static void applyStyle(int style, AttributeValues values) {
2676 values.setWeight((style & BOLD) != 0 ? 2f : 1f);
2678 values.setPosture((style & ITALIC) != 0 ? .2f : 0f);