Lines Matching refs:rArgs

169 GraphiteLayout::Glyphs::fill_from(gr::Segment & rSegment, ImplLayoutArgs &rArgs,  in fill_from()  argument
174 int nChar = rArgs.mnEndCharPos - rArgs.mnMinCharPos; in fill_from()
222 if (in_range(nFirstCharInCluster, rArgs.mnMinCharPos, rArgs.mnEndCharPos) && in fill_from()
226 appendCluster(rSegment, rArgs, bRtl, in fill_from()
286 if (in_range(nFirstCharInCluster, rArgs.mnMinCharPos, rArgs.mnEndCharPos) && in fill_from()
290 appendCluster(rSegment, rArgs, bRtl, fSegmentAdvance, in fill_from()
341 ImplLayoutArgs & rArgs, bool bRtl,float fSegmentAdvance, in appendCluster() argument
357 rChar2Base[nFirstCharInCluster-rArgs.mnMinCharPos] = size(); in appendCluster()
391 rChar2Base[nFirstCharInCluster-rArgs.mnMinCharPos] |= WORD_BREAK_BEFORE; in appendCluster()
393 rChar2Base[nFirstCharInCluster-rArgs.mnMinCharPos] |= HYPHEN_BREAK_BEFORE; in appendCluster()
396 if (rArgs.mpStr[nFirstCharInCluster] == 0x20) in appendCluster()
397 rChar2Base[nFirstCharInCluster-rArgs.mnMinCharPos] |= WORD_BREAK_BEFORE; in appendCluster()
420 if ((signed)aGlyph.firstChar() < rArgs.mnEndCharPos && in appendCluster()
421 (signed)aGlyph.firstChar() >= rArgs.mnMinCharPos) in appendCluster()
423 rCharDxs[aGlyph.firstChar()-rArgs.mnMinCharPos] = nNextOrigin; in appendCluster()
427 …append(rSeg, rArgs, aGlyph, fNextOrigin, fScaling, rChar2Base, rGlyph2Char, rCharDxs, rDXOffset, b… in appendCluster()
442 if ((n < rArgs.mnEndCharPos) && (n >= rArgs.mnMinCharPos)) in appendCluster()
443 rCharDxs[n-rArgs.mnMinCharPos] = nXPos; in appendCluster()
450 if (n < rArgs.mnEndCharPos && n >= rArgs.mnMinCharPos) in appendCluster()
451 rCharDxs[n-rArgs.mnMinCharPos] = nXPos; in appendCluster()
455 …w%d\n", nFirstGlyphInCluster, nNextGlyph, nFirstCharInCluster, nNextChar, rArgs.mpStr[nFirstCharIn… in appendCluster()
589 bool GraphiteLayout::LayoutText(ImplLayoutArgs & rArgs) in LayoutText() argument
595 if (rArgs.mnMinCharPos < rArgs.mnEndCharPos) in LayoutText()
597 pSegment = CreateSegment(rArgs, &pSegRecord); in LayoutText()
607 bool success = LayoutGlyphs(rArgs, pSegment, pSegRecord); in LayoutText()
614 if (rArgs.mnMinCharPos < rArgs.mnEndCharPos) in LayoutText()
616 pSegment = CreateSegment(rArgs); in LayoutText()
619 success = LayoutGlyphs(rArgs, pSegment); in LayoutText()
694 gr::Segment * GraphiteLayout::CreateSegment(ImplLayoutArgs& rArgs, GrSegRecord ** pSegRecord) in CreateSegment() argument
696 gr::Segment * GraphiteLayout::CreateSegment(ImplLayoutArgs& rArgs) in CreateSegment()
699 assert(rArgs.mnLength >= 0); in CreateSegment()
704 SalLayout::AdjustLayout(rArgs); in CreateSegment()
724 const int nSegCharLimit = min(rArgs.mnLength, mnEndCharPos + EXTRA_CONTEXT_LENGTH); in CreateSegment()
725 int limit = rArgs.mnEndCharPos; in CreateSegment()
726 if ((nSegCharLimit > limit) && !(SAL_LAYOUT_COMPLEX_DISABLED & rArgs.mnFlags)) in CreateSegment()
728 limit += findSameDirLimit(rArgs.mpStr + rArgs.mnEndCharPos, in CreateSegment()
729 nSegCharLimit - rArgs.mnEndCharPos, bRtl); in CreateSegment()
739 *pSegRecord = pCache->getSegment(rArgs, bRtl, limit); in CreateSegment()
745 if (rArgs.mpStr != mpTextSrc->getLayoutArgs().mpStr || in CreateSegment()
746 rArgs.mnMinCharPos != mpTextSrc->getLayoutArgs().mnMinCharPos || in CreateSegment()
747 rArgs.mnEndCharPos != mpTextSrc->getLayoutArgs().mnEndCharPos || in CreateSegment()
748 (SAL_LAYOUT_FOR_FALLBACK & rArgs.mnFlags) ) in CreateSegment()
752 mpTextSrc->switchLayoutArgs(rArgs); in CreateSegment()
753 if (limit > rArgs.mnMinCharPos && limit == rArgs.mnEndCharPos in CreateSegment()
786 mpTextSrc = new TextSourceAdaptor(rArgs, limit); in CreateSegment()
793 …fprintf(grLog(),"Gr::LayoutText %d-%d, context %d,len%d rtl%d/%d scaling %f\n", rArgs.mnMinCharPos, in CreateSegment()
794rArgs.mnEndCharPos, limit, rArgs.mnLength, maLayout.rightToLeft(), pSegment->rightToLeft(), mfScal… in CreateSegment()
807 fprintf(grLog(), "%04x ", rArgs.mpStr[i]); in CreateSegment()
824 bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, gr::Segment * pSegment, GrSegRecord * pSeg… in LayoutGlyphs() argument
826 bool GraphiteLayout::LayoutGlyphs(ImplLayoutArgs& rArgs, gr::Segment * pSegment) in LayoutGlyphs()
834 !(SAL_LAYOUT_FOR_FALLBACK & rArgs.mnFlags) ) in LayoutGlyphs()
862 mvGlyphs.fill_from(*pSegment, rArgs, bRtl, in LayoutGlyphs()
875 if (pSegRecord && rArgs.maReruns.IsEmpty() && in LayoutGlyphs()
876 !(SAL_LAYOUT_FOR_FALLBACK & rArgs.mnFlags)) in LayoutGlyphs()
985 void GraphiteLayout::AdjustLayout(ImplLayoutArgs& rArgs) in AdjustLayout() argument
987 SalLayout::AdjustLayout(rArgs); in AdjustLayout()
988 if(rArgs.mpDXArray) in AdjustLayout()
991 ApplyDXArray(rArgs, vDeltaWidths); in AdjustLayout()
994 !(rArgs.mnFlags & SAL_LAYOUT_FOR_FALLBACK) ) in AdjustLayout()
998 for (int i = rArgs.mnMinCharPos; i < rArgs.mnEndCharPos; i++) in AdjustLayout()
1001 UScriptCode scriptCode = uscript_getScript(rArgs.mpStr[i], &aStatus); in AdjustLayout()
1016 else if (rArgs.mnLayoutWidth > 0) in AdjustLayout()
1019 fprintf(grLog(), "AdjustLayout width %ld=>%ld\n", mnWidth, rArgs.mnLayoutWidth); in AdjustLayout()
1021 expandOrCondense(rArgs); in AdjustLayout()
1025 void GraphiteLayout::expandOrCondense(ImplLayoutArgs &rArgs) in expandOrCondense() argument
1027 int nDeltaWidth = rArgs.mnLayoutWidth - mnWidth; in expandOrCondense()
1068 …float fXFactor = static_cast<float>(rArgs.mnLayoutWidth - iLastGlyph->mnOrigWidth) / static_cast<f… in expandOrCondense()
1072 iLastGlyph->maLinearPos.X() = rArgs.mnLayoutWidth - iLastGlyph->mnOrigWidth; in expandOrCondense()
1084 mnWidth = rArgs.mnLayoutWidth; in expandOrCondense()