in Sources/TwitterTextEditor/LayoutManager.swift [181:193]
init(mutableGlyphs: MutableGlyphs) {
let glyphs = UnsafeMutableBufferPointer<CGGlyph>.allocate(capacity: mutableGlyphs.glyphs.count)
_ = glyphs.initialize(from: mutableGlyphs.glyphs)
self.glyphs = glyphs
let properties = UnsafeMutableBufferPointer<NSLayoutManager.GlyphProperty>.allocate(capacity: mutableGlyphs.properties.count)
_ = properties.initialize(from: mutableGlyphs.properties)
self.properties = properties
let characterIndexes = UnsafeMutableBufferPointer<Int>.allocate(capacity: mutableGlyphs.characterIndexes.count)
_ = characterIndexes.initialize(from: mutableGlyphs.characterIndexes)
self.characterIndexes = characterIndexes
}