SkiaKit icon indicating copy to clipboard operation
SkiaKit copied to clipboard

GetGlyphPositions SkiaSharp implementation in Swift

Open aakrandan opened this issue 1 year ago • 1 comments

` func getGlyphPositions(text: String) -> [Point] { var textChar = Character

    var n = countGlyphs(str: text)
    if n <= 0 {
        return [Point]()
    }
    
    var positions: [Point] = Array.init (repeating: Point(x:0, y:0), count: Int(n))
    
    if var glyphs = getGlyphs(str: text) {
        positions = getGlyphPositions(glyphs: &glyphs)
    }

    return positions
}`

Could you also review this?

aakrandan avatar Jun 21 '23 12:06 aakrandan

I am sorry i am not raising any pull requests because i am not sure if i have done this correctly.

aakrandan avatar Jun 21 '23 12:06 aakrandan