sky/engine/platform/fonts/harfbuzz/FontHarfBuzz.cpp
// Return the code point index for the given |x| offset into the text run.
Return the code point index for the given |x| offset into the text run.
Return the code point index for the given |x| offset into the text run .
int Font::offsetForPositionForComplexText(const TextRun& run, float xFloat,
                                          bool includePartialGlyphs) const
{
    HarfBuzzShaper shaper(this, run);
    if (!shaper.shape())
        return 0;
    return shaper.offsetForPosition(xFloat);
}
int Font :: offsetForPositionForComplexText ( const TextRun & run , float xFloat , bool includePartialGlyphs ) const { HarfBuzzShaper shaper ( this , run ) ; if ( ! shaper . shape ( ) ) return 0 ; return shaper . offsetForPosition ( xFloat ) ; }
Return the code point index for the given |x| offset into the text run.
Return the code point index for the given |x| offset into the text run .