Lines Matching defs:glyphCode

316     long getGlyphImageFromNative(int glyphCode) {
318 return getGlyphImageFromWindows(glyphCode);
320 return getGlyphImageFromX11(glyphCode);
330 int glyphCode,
333 long getGlyphImageFromWindows(int glyphCode) {
339 (family, style, size, glyphCode,
349 float advance = getGlyphAdvance(glyphCode, false);
354 return fileFont.getGlyphImage(pScalerContext, glyphCode);
359 long getGlyphImageFromX11(int glyphCode) {
361 char charCode = fileFont.glyphToCharMap[glyphCode];
372 return fileFont.getGlyphImage(pScalerContext, glyphCode);
375 long getGlyphImagePtr(int glyphCode) {
376 if (glyphCode >= INVISIBLE_GLYPHS) {
380 if ((glyphPtr = getCachedGlyphPtr(glyphCode)) != 0L) {
384 glyphPtr = getGlyphImageFromNative(glyphCode);
389 " couldn't get native glyph for code = " + glyphCode);
393 glyphCode);
395 return setCachedGlyphPtr(glyphCode, glyphPtr);
402 int glyphCode = glyphCodes[i];
403 if (glyphCode >= INVISIBLE_GLYPHS) {
406 } else if ((images[i] = getCachedGlyphPtr(glyphCode)) != 0L) {
411 glyphPtr = getGlyphImageFromNative(glyphCode);
414 glyphCode);
416 images[i] = setCachedGlyphPtr(glyphCode, glyphPtr);
428 int glyphCode = glyphCodes[i];
429 if (glyphCode >>> 24 != 0) {
434 if (glyphCode >= INVISIBLE_GLYPHS) {
437 } else if ((images[i] = getCachedGlyphPtr(glyphCode)) != 0L) {
442 glyphPtr = getGlyphImageFromNative(glyphCode);
446 glyphCode);
448 images[i] = setCachedGlyphPtr(glyphCode, glyphPtr);
455 long getCachedGlyphPtr(int glyphCode) {
457 return getCachedGlyphPtrInternal(glyphCode);
462 return nullScaler.getGlyphImage(nullSC, glyphCode);
466 private long getCachedGlyphPtrInternal(int glyphCode) {
469 return intGlyphImages[glyphCode] & INTMASK;
471 int segIndex = glyphCode >> SEGSHIFT;
473 int subIndex = glyphCode % SEGSIZE;
479 return longGlyphImages[glyphCode];
481 segIndex = glyphCode >> SEGSHIFT;
483 int subIndex = glyphCode % SEGSIZE;
493 private synchronized long setCachedGlyphPtr(int glyphCode, long glyphPtr) {
495 return setCachedGlyphPtrInternal(glyphCode, glyphPtr);
510 return nullScaler.getGlyphImage(nullSC, glyphCode);
514 private long setCachedGlyphPtrInternal(int glyphCode, long glyphPtr) {
517 if (intGlyphImages[glyphCode] == 0) {
518 intGlyphImages[glyphCode] = (int)glyphPtr;
522 return intGlyphImages[glyphCode] & INTMASK;
526 int segIndex = glyphCode >> SEGSHIFT;
527 int subIndex = glyphCode % SEGSIZE;
540 if (longGlyphImages[glyphCode] == 0L) {
541 longGlyphImages[glyphCode] = glyphPtr;
545 return longGlyphImages[glyphCode];
549 segIndex = glyphCode >> SEGSHIFT;
550 subIndex = glyphCode % SEGSIZE;
568 return setCachedGlyphPtr(glyphCode, glyphPtr);
601 float getGlyphAdvance(int glyphCode) {
602 return getGlyphAdvance(glyphCode, true);
610 private float getGlyphAdvance(int glyphCode, boolean getUserAdv) {
613 if (glyphCode >= INVISIBLE_GLYPHS) {
645 advance = horizontalAdvances[glyphCode];
656 int segIndex = glyphCode >> SEGSHIFT;
659 advance = subArray[glyphCode % SEGSIZE];
674 fileFont.getGlyphMetrics(pScalerContext, glyphCode, metrics);
682 advance = getGlyphMetrics(glyphCode, getUserAdv).x;
691 glyphPtr = getGlyphImagePtr(glyphCode);
693 glyphPtr = getCachedGlyphPtr(glyphCode);
700 advance = fileFont.getGlyphAdvance(pScalerContext, glyphCode);
705 horizontalAdvances[glyphCode] = advance;
707 int segIndex = glyphCode >> SEGSHIFT;
708 int subIndex = glyphCode % SEGSIZE;
727 void getGlyphImageBounds(int glyphCode, Point2D.Float pt,
730 long ptr = getGlyphImagePtr(glyphCode);
812 Point2D.Float getGlyphMetrics(int glyphCode) {
813 return getGlyphMetrics(glyphCode, true);
816 private Point2D.Float getGlyphMetrics(int glyphCode, boolean getImage) {
820 if (glyphCode >= INVISIBLE_GLYPHS) {
830 glyphPtr = getGlyphImagePtr(glyphCode);
832 glyphPtr = getCachedGlyphPtr(glyphCode);
854 Integer key = Integer.valueOf(glyphCode);
870 fileFont.getGlyphMetrics(pScalerContext, glyphCode, metrics);
915 Rectangle2D.Float getGlyphOutlineBounds(int glyphCode) {
921 Integer key = Integer.valueOf(glyphCode);
925 bounds = fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
931 public Rectangle2D getOutlineBounds(int glyphCode) {
932 return fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
938 GeneralPath getGlyphOutline(int glyphCode, float x, float y) {
946 gp = outlineMap.get(glyphCode);
951 gp = fileFont.getGlyphOutline(pScalerContext, glyphCode, 0, 0);
958 outlineMap.put(glyphCode, gp);