Lines Matching refs:i
263 int i, j; local
271 while( rArgs.GetNextRun( &i, &j, &bHasRTL ) && !bHasRTL )
272 mnGlyphCount += j - i;
278 for( i = 0; i < mnCharCount; ++i )
279 mpGlyphRTLFlags[i] = false;
297 for( i = 0; i < mnCharCount; ++i )
298 mpChars2Glyphs[i] = mpGlyphs2Chars[i] = -1;
303 while( rArgs.GetNextRun( &i, &j, &bIsRTL ) )
308 int nCharPos = bIsRTL ? --j : i++;
332 } while( i < j );
351 for( i = 0; i < mnGlyphCount; ++i )
352 mpOutGlyphs[i] = pBidiStr[ i ];
354 for( i = 0; i < mnGlyphCount; ++i )
356 const sal_Unicode* pCodes = &pBidiStr[i];
373 mpGlyphAdvances[ i ] = nGlyphWidth;
378 mpGlyphAdvances[ i+1 ] = 0;
391 bool bRTL = mpGlyphRTLFlags ? mpGlyphRTLFlags[i] : false;
392 int nCharPos = mpGlyphs2Chars ? mpGlyphs2Chars[i]: i + rArgs.mnMinCharPos;
402 mpOutGlyphs[i] = DROPPED_OUTGLYPH;
404 mpOutGlyphs[i+1] = DROPPED_OUTGLYPH;
418 mpOutGlyphs[i] = 0;
422 mnWidth += mnNotdefWidth - mpGlyphAdvances[i];
423 mpGlyphAdvances[i] = mnNotdefWidth;
425 mpGlyphOrigAdvs[i] = mnNotdefWidth;
438 for( i = 0; i < mnGlyphCount; ++i )
439 mpGlyphOrigAdvs[i] = mpGlyphAdvances[i];
445 for( i = 1; i < nLen; ++i )
450 int nKernAmount = mrOs2FontEntry.GetKerning( pBidiStr[i-1], pBidiStr[i] );
451 mpGlyphAdvances[ i-1 ] += nKernAmount;
457 if( (0x3000 == (0xFF00 & pBidiStr[i-1]))
458 && (0x3000 == (0xFF00 & pBidiStr[i])) )
460 long nKernFirst = +CalcAsianKerning( pBidiStr[i-1], true, bVertical );
461 long nKernNext = -CalcAsianKerning( pBidiStr[i], false, bVertical );
466 nDelta = (nDelta * mpGlyphAdvances[i-1] + 2) / 4;
467 mpGlyphAdvances[i-1] += nDelta;
480 for( i = 0; i < mnCharCount; ++i )
481 mpCharWidths[ i ] = 0;
482 for( i = 0; i < mnGlyphCount; ++i )
484 int j = mpGlyphs2Chars[ i ] - rArgs.mnMinCharPos;
486 mpCharWidths[ j ] += mpGlyphAdvances[ i ];
495 for( i = 0; i < mnCharCount; ++i )
496 mpCharWidths[ i ] *= mfFontScale;
498 for( i = 0; i < mnGlyphCount; ++i )
499 mpGlyphAdvances[ i ] *= mfFontScale;
501 for( i = 0; i < mnGlyphCount; ++i )
502 mpGlyphOrigAdvs[ i ] *= mfFontScale;
520 for( int i = 0; i < nStart; ++i ) local
521 nXOffset += mpGlyphAdvances[ i ];
627 for( int i = 0; i < mnGlyphCount; ++i ) local
628 mnWidth += mpGlyphAdvances[ i ];
633 for( int i = 0; i < mnCharCount; ++i ) local
634 pDXArray[ i ] = mpCharWidths[ i ];
673 for( int i = 0; i < nMaxIdx; i += 2 ) local
675 pCaretXArray[ i ] = nXPos;
676 nXPos += mpGlyphAdvances[ i>>1 ];
677 pCaretXArray[ i+1 ] = nXPos;
682 int i; local
683 for( i = 0; i < nMaxIdx; ++i )
684 pCaretXArray[ i ] = -1;
687 for( i = 0; i < mnGlyphCount; ++i )
689 int nCurrIdx = mpGlyphs2Chars[ i ] - mnMinCharPos;
692 if( !(mpGlyphRTLFlags && mpGlyphRTLFlags[i]) )
704 nXPos += mpGlyphAdvances[ i ];
728 int nStretchable = 0, i; local
729 for( i = 0; i < nRight; ++i )
730 if( mpGlyphAdvances[i] >= 0 )
735 for( i = 0; (i < nRight) && (nStretchable > 0); ++i )
737 if( mpGlyphAdvances[i] <= 0 )
740 mpGlyphAdvances[i] += nDeltaWidth;
763 int i; local
767 for( i = 0; i < mnGlyphCount; ++i )
768 mpCharWidths[ i ] = mpGlyphAdvances[ i ];
773 for( i = 0; i < mnCharCount; ++i )
774 mpCharWidths[ i ] = 0;
775 for( i = 0; i < mnGlyphCount; ++i )
777 int j = mpGlyphs2Chars[ i ] - rArgs.mnMinCharPos;
779 mpCharWidths[ j ] += mpGlyphAdvances[ i ];
792 int i = 0; local
794 for(; i < mnCharCount; ++i )
796 int j = !mpChars2Glyphs ? i : mpChars2Glyphs[i];
800 int nDiff = nOldWidth - pDXArray[ i ];
810 if( i >= mnCharCount )
816 for( i = 0; i < mnGlyphCount; ++i )
817 mpGlyphOrigAdvs[ i ] = mpGlyphAdvances[ i ];
821 for( i = 0; i < mnCharCount; ++i )
823 int j = !mpChars2Glyphs ? i : mpChars2Glyphs[i];
825 mpGlyphAdvances[j] = pDXArray[i] - mnWidth;
826 mnWidth = pDXArray[i];
840 for( int i = 0; i < nStart; ++i ) local
841 nXPos += mpGlyphAdvances[i];
870 int i = mnGlyphCount; local
871 while( (--i >= 0) && (mpOutGlyphs[ i ] != DROPPED_OUTGLYPH) );
872 if( i < 0 )
889 for( i = mnGlyphCount; --i >= 0; )
891 if( mpOutGlyphs[ i ] != DROPPED_OUTGLYPH )
894 mnWidth -= mpGlyphAdvances[ i ];
895 int nRelCharPos = mpGlyphs2Chars[ i ] - mnMinCharPos;
899 mnGlyphCount = i + 1;
911 for( i = 0; i < mnGlyphCount; ++i )
913 if( mpOutGlyphs[ i ] == DROPPED_OUTGLYPH )
916 int nDroppedWidth = mpGlyphAdvances[ i ];
917 mpGlyphAdvances[ i ] = 0;
924 int nRelCharPos = mpGlyphs2Chars[ i ] - mnMinCharPos;
930 if( nNewGC != i )
933 mpOutGlyphs[ nNewGC ] = mpOutGlyphs[ i ];
934 mpGlyphAdvances[ nNewGC ] = mpGlyphAdvances[ i ];
935 mpGlyphOrigAdvs[ nNewGC ] = mpGlyphOrigAdvs[ i ];
936 mpGlyphs2Chars[ nNewGC ] = mpGlyphs2Chars[ i ];