Lines Matching refs:fonts

139       * composite fonts can use up to 16 platform fonts (including the
141 * dealing with one of these fonts.
142 * The pool array stores the fonts, rather than directly referencing
155 /* There are at exactly 20 composite fonts: 5 faces (but some are not
178 /* TrueType fonts have localised names. Support searching all
203 /* fontPath is the location of all fonts on the system, excluding the
212 /* discoveredAllFonts is set to true when all fonts on the font path are
354 jreFontDirName = jreLibDirName + File.separator + "fonts";
410 /* Here we get the fonts in jre/lib/fonts and register
412 * other fonts. This needs to be registered before the
413 * composite fonts as otherwise some native font that
415 * handle two fonts of the same name, so the JRE one
417 * registerFonts method as on-screen these JRE fonts
421 /* Linux font configuration uses these fonts */
441 * JRE fonts dir. This directory is still always located
528 * bitmap fonts. This could be done by listing the
531 * are no bitmap fonts for other writing systems that
532 * correspond to TrueType fonts and have matching XLFDs.
533 * We need to register the bitmap fonts only in
541 registerFontDir("/usr/openwin/lib/locale/ja/X11/fonts/TT");
652 * a variant of composite fonts which prefers locale specific or
653 * proportional fonts.
712 * Systems may have fonts with the same name.
713 * We want to register only one of such fonts (at least until
715 * Rank is 1) font configuration fonts, 2) JRE fonts, 3) OT/TT fonts,
716 * 4) Type1 fonts, 5) native fonts.
720 * If the fonts are of equal rank, then make a special case of
721 * font configuration rank fonts, which are on closer inspection,
722 * OT/TT fonts such that the larger font is registered. This is
729 * Also don't want to register fonts that match JRE font families
782 /* All fonts initialise their mapper when first
790 * fonts, and since all the components of a given
798 * the original font to be used in Composite fonts.
805 * but as a special case, if the two fonts are the same rank,
821 /* Don't replace ever JRE fonts.
828 * problem with our choice of font configuration fonts.
883 * initialisation of all the components of composite fonts at JRE
887 * deferred fonts are initialised before triggering a search of the
889 * Two maps are used. One to track the deferred fonts. The
890 * other to track the fonts that have been initialised through this
921 * fonts reference the same font face name (cf the Solaris
922 * euro fonts).
943 /* We keep a map of the files which contain the Lucida fonts so we
945 * But since we know what fonts these files contain, we can also avoid
991 * directory, or are known Lucida fonts.
1025 /* This skips JRE installed fonts. */
1211 /* findFont2D will load all fonts before giving up the search.
1212 * If the JRE Lucida isn't found (eg because the JRE fonts
1226 * know all fonts have already been loaded, just accept any
1229 * no fonts anywhere on the system.
1235 throw new Error("Probable fatal error:No fonts found.");
1290 * the member fonts, eg:
1295 /* The directories which contain platform fonts */
1349 * Installed fonts are those in the windows font directories.
1351 * We obtain the list of TrueType fonts in these directories and
1353 * What remains may be "bad" fonts, duplicate fonts, or perhaps the
1396 * to correspond are likely fonts that were named differently
1406 * occurs only for a small number of fonts on specific system
1411 * files we want to open to find the fonts GDI returned.
1417 * Also note that typically the fonts for which this occurs in
1418 * CJK locales are TTC fonts and not all fonts in a TTC may have
1419 * localised names. Eg MSGOTHIC.TTC contains 3 fonts and one of
1454 * we enumerate all fonts.
1466 * user any fonts that can't be mapped to files.
1492 * In some cases windows may have fonts in the fonts folder that
1493 * don't show up in the registry or in the GDI calls to enumerate fonts.
1498 * that its not significant in these 'enumerate all the fonts' cases.
1521 * copies of the existing maps, add the new fonts into these
1553 ArrayList<String> fonts = familyToFontListMap2.get(familyLC);
1554 if (fonts == null) {
1555 fonts = new ArrayList<String>();
1557 fonts = new ArrayList<String>(fonts);
1559 fonts.add(fontName);
1560 familyToFontListMap2.put(familyLC, fonts);
1604 /* Hardwire the English names and expected file names of fonts
1607 * The code that registers these fonts needs to "bail" if any
1757 * are what we'd expect. Now on to registering the fonts.
1758 * Currently this code only looks for TrueType fonts, so format
1840 logger.info("family="+keyName+ " fonts="+
1845 /* Note this return list excludes logical fonts and JRE fonts */
1895 * set, and on windows, the fonts in the system font directory that
1898 * installed fonts.
1959 * otherwise we would register all fonts.
2024 /* Currently this code only looks for TrueType fonts, so format
2033 /* Register all fonts in this family. */
2040 /* Currently this code only looks for TrueType fonts, so format
2069 * exist only in some other style. For non-native fonts the scaler
2078 * called we may be using an alternate set of composite fonts in this
2103 // The check below is just so that the bitmap fonts being set by
2105 // the load fonts case. The two bitmap fonts are now mapped to
2155 * "plain". This because the existing behaviour is that the fonts
2172 * that family before trying to load all fonts, or applying a
2193 * are going to get. We could load all fonts to
2243 * uninitialised deferred fonts, load as many of those as needed
2248 * fonts are only those in font configuration files, this is a
2263 * Solaris these are Type1 fonts in /usr/openwin/lib/X11/fonts/Type1.
2264 * If running on Solaris will register all the fonts in this
2268 * load all fonts which are in this directory anyway.
2270 * TrueType versions of such fonts that are elsewhere but since they
2289 /* We check for application registered fonts before
2290 * explicitly loading all fonts as if necessary the registration
2292 * load the actual files for all fonts.
2293 * Just as for installed fonts we check for family before fullname.
2294 * We do not add these fonts to fontNameCache for the
2339 /* If reach here and no match has been located, then if all fonts
2345 .info("Load fonts looking for:" + name);
2374 * As in 1.4.x this happens only after loading all fonts, which
2383 * or courier, which 1.0 apps used for logical fonts.
2385 * hide real fonts of these names.
2565 * This is different than the case where fonts are discovered to
2566 * be incorrect during initial verification, as such fonts are
2675 * there are exclusion ranges and unlike other fonts even the
2693 Font2D[] fonts = getRegisteredFonts();
2694 for (int i=0; i<fonts.length; i++) {
2695 if (fonts[i] instanceof TrueTypeFont) {
2696 TrueTypeFont ttf = (TrueTypeFont)fonts[i];
2724 * not yet built the map of localeFullNamesToFont for TT fonts, do so
2725 * now. This method must be called after all fonts have been loaded.
2765 * are going to get. We could load all fonts to
2782 /* Supporting "alternate" composite fonts on 2D graphics objects
2796 * running in an applet/browser/Java plugin environment these new fonts
2799 * so that look-up for composite fonts will in that case always
2824 * - Printing: The implementation delegates logical fonts to an AWT
2826 * We can detect that alternate fonts are in use and back-off to 2D, but
2849 * We also use non-standard composites for Swing native L&F fonts on
2948 /* If no proportional fonts are configured, there's no need
3027 * installed fonts. Check these conditions :
3040 * We don't apply the same logic to registered fonts. If apps want
3156 Font[] fonts = new Font[nameTable.size()];
3159 fonts[i++] = new Font(font2D.getFontName(l), Font.PLAIN, 1);
3161 return fonts;
3318 // this will find all fonts including those already
3356 /* Called to register fall back fonts */
3452 // this will find all fonts including those already
3468 * used as components of composite/logical fonts and iterates over these
3469 * looking up their corresponding file name and registers these fonts.
3470 * It also ensures that the fonts are accessible via platform APIs.
3479 .info("Initialising composite fonts");
3506 * so that all fonts are mapped to files and all their
3518 * for native (F3) fonts
3530 * the fonts it puts them in a place and form suitable for
3532 * and if it uses X11 fonts.
3555 /* FontConfiguration needs to convey how many fonts it has added
3556 * as fallback component fonts which should not affect metrics.
3559 * fall back component fonts to the composite.
3647 * the names of the fonts using the English names. If there's a
3650 * thereby enumerate it twice. This happens for Japanese fonts listed
3655 * - we know when we get here all deferred fonts are already initialised
3656 * - when we register a font file, we register all fonts in it.
3657 * - we know the fontconfig fonts are all in the windows registry
3683 * Returns all fonts installed in this environment.
3689 /* warning: the number of composite fonts could change dynamically
3718 Font[] fonts = new Font[fontNames.length];
3720 fonts[i] = new Font(fontNames[i], Font.PLAIN, 1);
3723 FontAccess.getFontAccess().setFont2D(fonts[i], f2d.handle);
3726 allFonts = fonts;
3735 * Get a list of installed fonts in the requested {@link Locale}.
3736 * The list contains the fonts Family Names.
3740 * @return list of installed fonts in the system.
3765 * as the start-up system locale, rather than loading all fonts.
3806 String type1Dir = "/usr/openwin/lib/X11/fonts/Type1";
3814 /* Really we need only the JRE fonts family names, but there's little
3816 * known fonts.
3853 * names of fonts are enumerated using the language of