Lines Matching refs:strike

79      * A mapper can be independent of the strike.
88 * The strike cache is maintained per "Font2D" as that is the
98 * Similarly to the strike that was stored on a C++ font object,
103 * strike obtained from this Font2D satifies the needs of the next
186 * Creates an appropriate strike for the Font2D subclass
191 * is dependent on the font and its scaler, but not the strike.
192 * If no strike has ever been returned, then create a one that matches
195 * strike.
198 FontStrike strike = (FontStrike)lastFontStrike.get();
199 if (strike != null) {
200 return strike;
221 * different instances of the strike, and there'd be some duplication of
230 /* Create the descriptor which is used to identify a strike
231 * in the strike cache/map. A strike is fully described by
260 /* Create the descriptor which is used to identify a strike
261 * in the strike cache/map. A strike is fully described by
298 * last strike returned from this Font2D. This should often be a win
303 * Reference to the strike. If it exists and points to a strike,
304 * then we update the last strike to refer to that and return it.
307 * collected, then we create a new strike, put it in the map and
308 * set it to be the last strike.
310 FontStrike strike = (FontStrike)lastFontStrike.get();
311 if (strike != null && desc.equals(strike.desc)) {
312 //strike.lastlookupTime = System.currentTimeMillis();
313 return strike;
317 strike = (FontStrike)strikeRef.get();
318 if (strike != null) {
319 //strike.lastlookupTime = System.currentTimeMillis();
320 lastFontStrike = new SoftReference(strike);
321 StrikeCache.refStrike(strike);
322 return strike;
344 strike = createStrike(desc);
351 * which is what we want for what is likely a transient strike.
357 strikeRef = StrikeCache.getStrikeRef(strike, true);
359 strikeRef = StrikeCache.getStrikeRef(strike);
362 //strike.lastlookupTime = System.currentTimeMillis();
363 lastFontStrike = new SoftReference(strike);
364 StrikeCache.refStrike(strike);
365 return strike;
399 FontStrike strike = getStrike(font, at, aa, fm);
400 StrikeMetrics strikeMetrics = strike.getFontMetrics();
522 FontStrike strike = getStrike(font, at, aa, fm);
523 StrikeMetrics metrics = strike.getFontMetrics();