All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.jetbrains.skia.shaper.TrivialFontRunIterator.kt Maven / Gradle / Ivy

There is a newer version: 0.8.15
Show newest version
package org.jetbrains.skia.shaper

import org.jetbrains.skia.*

class TrivialFontRunIterator(text: String, font: Font) : MutableIterator {
    val _length: Int

    val _font: Font

    internal var _atEnd: Boolean
    override fun next(): FontRun {
        _atEnd = true
        return FontRun(_length, _font)
    }

    override fun hasNext(): Boolean {
        return !_atEnd
    }

    init {
        _length = text.length
        _font = font
        _atEnd = _length == 0
    }

    override fun remove() {
        TODO("Not yet implemented")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy