findVerticalBorders

open fun findVerticalBorders(width: Int, glyph: @NotNull Array<Int>): @Nullable Array<Int>

Finds the first and last non-empty columns in a glyph.

Return

An int array of length 2, where the first element is the index of the first non-empty column and the second element is the index of the last non-empty column. If the glyph is completely empty, null is returned.

Parameters

width

The width of the glyph

glyph

The glyph