/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
return fc;
}
boolean preferPropFonts)
{
}
/*
* Returns an array of two strings. The first element is the
* name of the font. The second element is the file name.
*/
if (defaultPlatformFont == null) {
}
return defaultPlatformFont;
}
// This is a way to register any kind of Font2D, not just files and composites.
}
{
return registerGenericFont(f, false);
}
{
int rank = 4;
return null;
}
// logical fonts always need to be added to the family
// plus they never need to be added to the generic font list
// or the fullNameToFont table since they are covers for
// already existing fonts in this list
if (FontUtilities.debugFonts()) {
}
}
if (!logicalFont)
{
}
return f;
} else {
}
}
// Add in the Mac OS X native fonts
return allFonts;
}
protected void addNativeFontFamilyNames(TreeMap<String, String> familyNames, Locale requestedLocale) {
if (!(genericfonts[i] instanceof NativeFont)) {
}
}
}
public Font2D createFont2D(File fontFile, int fontFormat, boolean isCopy, CreatedFontTracker tracker) throws FontFormatException {
try {
switch (fontFormat) {
case Font.TRUETYPE_FONT:
break;
case Font.TYPE1_FONT:
break;
default:
throw new FontFormatException("Unrecognised Font Format");
}
} catch (FontFormatException e) {
if (isCopy) {
}
return null;
}
});
}
throw(e);
}
if (isCopy) {
synchronized (FontManager.class) {
if (tmpFontFiles == null) {
}
if (fileCloser == null) {
public void run() {
for (int i=0;i<CHANNELPOOLSIZE;i++) {
if (fontFileCache[i] != null) {
try {
fontFileCache[i].close();
} catch (Exception e) {}
}
}
if (tmpFontFiles != null) {
try {
} catch (Exception e) {}
}
}
return null;
}
});
}
};
/* The thread must be a member of a thread group
* which will not get GCed before VM exit.
* Make its parent the top-level thread group.
*/
return null;
}
});
}
}
}
return font2D;
}
/*
public synchronized FontConfigManager getFontConfigManager() {
if (fcManager == null) {
fcManager = new FontConfigManager();
}
return fcManager;
}
*/
protected void registerFontsInDir(String dirName, boolean useJavaRasterizer, int fontRank, boolean defer, boolean resolveSymLinks) {
}
private native void loadNativeFonts();
}
}
public void loadFonts()
{
synchronized(waitForFontsToBeLoaded)
{
super.loadFonts();
return null;
}
}
);
}
}
}
protected FontFamily getFontFamilyWithExtraTry(String logicalName, String realName, String fallbackName){
// at this point, we recognize that we probably needed a fallback font
super.loadFonts();
System.err.println("Warning: the fonts \"" + realName + "\" and \"" + fallbackName + "\" are not available for the Java logical font \"" + logicalName + "\", which may have unexpected appearance or behavior. Re-enable the \""+ realName +"\" font to remove this warning.");
return null;
}
System.err.println("Warning: the font \"" + realName + "\" is not available, so \"" + fallbackName + "\" has been substituted, but may have unexpected appearance or behavor. Re-enable the \""+ realName +"\" font to remove this warning.");
return family;
}
return null;
}
if (realFamily == null) return false;
registerGenericFont(newFont, true);
return true;
}
// In the case of the Cocoa toolkit, since we go through NSFont, we dont need to register /Library/Fonts
if (tk instanceof HeadlessToolkit) {
}
if (tk instanceof LWCToolkit) {
return "";
}
// X11 case
}
{
if (mappedName == null) {
mappedName = "sansserif";
}
}
// Only implemented on Windows
protected void populateFontFileNameMap(HashMap<String, String> fontToFileMap, HashMap<String, String> fontToFamilyNameMap,
}