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);
429 int glyphCode = glyphCodes[i];
430 if (glyphCode >= SLOTZEROMAX) {
435 if (glyphCode >= INVISIBLE_GLYPHS) {
438 } else if ((images[i] = getCachedGlyphPtr(glyphCode)) != 0L) {
443 glyphPtr = getGlyphImageFromNative(glyphCode);
447 glyphCode);
449 images[i] = setCachedGlyphPtr(glyphCode, glyphPtr);
456 long getCachedGlyphPtr(int glyphCode) {
459 return intGlyphImages[glyphCode] & INTMASK;
461 int segIndex = glyphCode >> SEGSHIFT;
463 int subIndex = glyphCode % SEGSIZE;
469 return longGlyphImages[glyphCode];
471 segIndex = glyphCode >> SEGSHIFT;
473 int subIndex = glyphCode % SEGSIZE;
483 private synchronized long setCachedGlyphPtr(int glyphCode, long glyphPtr) {
486 if (intGlyphImages[glyphCode] == 0) {
487 intGlyphImages[glyphCode] = (int)glyphPtr;
491 return intGlyphImages[glyphCode] & INTMASK;
495 int segIndex = glyphCode >> SEGSHIFT;
496 int subIndex = glyphCode % SEGSIZE;
509 if (longGlyphImages[glyphCode] == 0L) {
510 longGlyphImages[glyphCode] = glyphPtr;
514 return longGlyphImages[glyphCode];
518 segIndex = glyphCode >> SEGSHIFT;
519 subIndex = glyphCode % SEGSIZE;
537 return setCachedGlyphPtr(glyphCode, glyphPtr);
570 float getGlyphAdvance(int glyphCode) {
571 return getGlyphAdvance(glyphCode, true);
579 private float getGlyphAdvance(int glyphCode, boolean getUserAdv) {
582 if (glyphCode >= INVISIBLE_GLYPHS) {
614 advance = horizontalAdvances[glyphCode];
625 int segIndex = glyphCode >> SEGSHIFT;
628 advance = subArray[glyphCode % SEGSIZE];
643 fileFont.getGlyphMetrics(pScalerContext, glyphCode, metrics);
651 advance = getGlyphMetrics(glyphCode, getUserAdv).x;
660 glyphPtr = getGlyphImagePtr(glyphCode);
662 glyphPtr = getCachedGlyphPtr(glyphCode);
669 advance = fileFont.getGlyphAdvance(pScalerContext, glyphCode);
674 horizontalAdvances[glyphCode] = advance;
676 int segIndex = glyphCode >> SEGSHIFT;
677 int subIndex = glyphCode % SEGSIZE;
696 void getGlyphImageBounds(int glyphCode, Point2D.Float pt,
699 long ptr = getGlyphImagePtr(glyphCode);
781 Point2D.Float getGlyphMetrics(int glyphCode) {
782 return getGlyphMetrics(glyphCode, true);
785 private Point2D.Float getGlyphMetrics(int glyphCode, boolean getImage) {
789 if (glyphCode >= INVISIBLE_GLYPHS) {
799 glyphPtr = getGlyphImagePtr(glyphCode);
801 glyphPtr = getCachedGlyphPtr(glyphCode);
823 Integer key = Integer.valueOf(glyphCode);
839 fileFont.getGlyphMetrics(pScalerContext, glyphCode, metrics);
884 Rectangle2D.Float getGlyphOutlineBounds(int glyphCode) {
890 Integer key = Integer.valueOf(glyphCode);
894 bounds = fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
900 public Rectangle2D getOutlineBounds(int glyphCode) {
901 return fileFont.getGlyphOutlineBounds(pScalerContext, glyphCode);
907 GeneralPath getGlyphOutline(int glyphCode, float x, float y) {
915 gp = (GeneralPath)outlineMap.get(glyphCode);
920 gp = fileFont.getGlyphOutline(pScalerContext, glyphCode, 0, 0);
927 outlineMap.put(glyphCode, gp);