src/share/classes/sun/font/PhysicalStrike.java

Print this page
rev 1379 : [mq]: fontmanager.patch

*** 34,43 **** --- 34,51 ---- public abstract class PhysicalStrike extends FontStrike { static final long INTMASK = 0xffffffffL; + static boolean longAddresses; + static { + switch (StrikeCache.nativeAddressSize) { + case 8: longAddresses = true; break; + case 4: longAddresses = false; break; + default: throw new RuntimeException("Unexpected address size"); + } + } private PhysicalFont physicalFont; protected CharToGlyphMapper mapper; /* the ScalerContext is a native structure pre-filled with the * info needed to setup the scaler for this strike. Its immutable