Lines Matching defs:style

268         /* Key is familyname+style value as an int.
270 * If no mapping exists, it means there is no font file for the style
599 public Font2DHandle getNewComposite(String family, int style,
612 if (style == -1) {
613 style = oldComp.getStyle();
616 Font2D newFont = findFont2D(family, style, NO_FALLBACK);
622 (CompositeFont)findFont2D("dialog", style, NO_FALLBACK);
708 family.setFont(f, f.style);
731 * This will ensure that we will algorithmically style the JRE
765 family.setFont(f, f.style);
767 family.setFont(f, f.style);
856 family.setFont(newFont, newFont.style);
858 family.setFont(newFont, newFont.style);
919 * optionally given a name and a style and it could stop when it
953 /*private*/ PhysicalFont findJREDeferredFont(String name, int style) {
956 String nameAndStyle = name.toLowerCase(Locale.ENGLISH) + style;
965 && physicalFont.style == style) {
1016 && physicalFont.style == style) {
1026 private PhysicalFont findOtherDeferredFont(String name, int style) {
1040 physicalFont.style == style) {
1047 private PhysicalFont findDeferredFont(String name, int style) {
1049 PhysicalFont physicalFont = findJREDeferredFont(name, style);
1053 return findOtherDeferredFont(name, style);
1242 public Font2D getDefaultLogicalFont(int style) {
1243 return findFont2D("dialog", style, NO_FALLBACK);
1247 * return String representation of style prepended with "."
1638 Font2D findFontFromPlatformMap(String lcName, int style) {
1782 * 2) The request is of the form "MyFont Bold", style=Font.ITALIC,
1784 * "MyFamily", style=Font.BOLD, and we may have matched the plain,
1790 font = fontFamily.getFont(style);
1792 font = fontFamily.getClosestStyle(style);
1794 } else if (style > 0 && style != font.style) {
1795 style |= font.style;
1796 font = fontFamily.getFont(style);
1798 font = fontFamily.getClosestStyle(style);
1952 * lcName may be a full name, or a family name, and style may
1956 * styles, then logic in findFont2D may try to style the original
1961 * style Font.ITALIC, as we would want in that case to try to return
1964 * a font that supports that and the italic style.
1971 private Font2D findFontFromPlatform(String lcName, int style) {
2049 /* Handle case where request "MyFont Bold", style=Font.ITALIC */
2051 style |= physicalFont.style;
2054 font = fontFamily.getFont(style);
2056 font = fontFamily.getClosestStyle(style);
2066 * The client supplies a name and a style.
2068 * A font may exist with the specified style, or it may
2069 * exist only in some other style. For non-native fonts the scaler
2070 * may be able to emulate the required style.
2072 public Font2D findFont2D(String name, int style, int fallback) {
2074 String mapName = lowerCaseName + dotStyleStr(style);
2132 font = family.getFontWithExactStyleMatch(style);
2134 font = findDeferredFont(name, style);
2137 font = family.getFont(style);
2140 font = family.getClosestStyle(style);
2153 /* Check that the requested style matches the matched font's style.
2154 * But also match style automatically if the requested style is
2156 * listed via getAllFonts etc always list their style as PLAIN.
2160 * style of "Lucida Sans DemiBold" you get "Lucida Sans DemiBold".
2165 if (font.style == style || style == Font.PLAIN) {
2170 * the style requested is "bold", then we want to see if
2177 Font2D familyFont = family.getFont(style|font.style);
2178 /* We exactly matched the requested style, use it! */
2185 * style, then base it on either bold or italic -
2188 familyFont = family.getClosestStyle(style|font.style);
2197 if (familyFont.canDoStyle(style|font.style)) {
2209 font = findFontFromPlatformMap(lowerCaseName, style);
2223 font = findJREDeferredFont(lowerCaseName, style);
2229 font = findFontFromPlatform(lowerCaseName, style);
2234 name + "\":, style="+style+
2255 font = findDeferredFont(name, style);
2280 font = findFont2D("serif", style, fallback);
2285 Font2D ff = findFont2D(name, style, fallback);
2316 font = family.getFontWithExactStyleMatch(style);
2318 font = family.getFont(style);
2321 font = family.getClosestStyle(style);
2349 return findFont2D(name, style, fallback);
2359 return findFont2D(name, style, fallback);
2377 if ((font = findFont2DAllLocales(name, style)) != null) {
2396 font = findFont2D(compatName, style, fallback);
2401 font = findFont2D("serif", style, fallback);
2405 font = findFont2D("sansserif", style, fallback);
2409 font = findFont2D("monospaced", style, fallback);
2420 case LOGICAL_FALLBACK: return getDefaultLogicalFont(style);
2716 private Font2D findFont2DAllLocales(String name, int style) {
2736 font = family.getFont(style);
2738 font = family.getClosestStyle(style);
2750 if (font.style == style || style == Font.PLAIN) {
2755 Font2D familyFont = family.getFont(style);
2756 /* We exactly matched the requested style, use it! */
2760 familyFont = family.getClosestStyle(style);
2770 if (!familyFont.canDoStyle(style)) {
3075 int style = font2D.getStyle();
3085 * new style can get picked up rather than continuing to synthesise.
3094 family.setFont(font2D, style);
3923 protected FontUIResource getFontConfigFUIR(String family, int style,
3926 return new FontUIResource(family, style, size);