Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetGlyphPositions SkiaSharp implementation in Swift #34

Open
aakrandan opened this issue Jun 21, 2023 · 1 comment
Open

GetGlyphPositions SkiaSharp implementation in Swift #34

aakrandan opened this issue Jun 21, 2023 · 1 comment

Comments

@aakrandan
Copy link

` 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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant