class CTRun
class Status
NoStatus, RightToLeft, NonMonotonic, HasNonIdentityMatrix = 0, 1, 2, 4,
end
def initialize()
@attributes = {}
@positions = []
end
def glyph_count
index
end
def attributes
@attributes
end
def status
status
end
def glyphs_ptr
@glyphs
end
def glyphs(range)
@glyphs(range)
end
def positions(range)
@positions(range)
end
def positions_ptr
@positions
end
def advances_ptr
CGSize# @glyph_advances
end
def advances(range)
buffer
end
def string_indices_ptr
index
end
def string_indices(range)
buffer
end
def string_range
range = []
end
def typographic_bounds(range, ascent, descent, leading)
width, ascent, descent, leading
end
def image_bounds(context, range)
rect = string[range].bounds
end
def draw(context, range)
end
def text_matrix
affin_transform
end
def type_id
end
end
#
run = CTRun.new()
See also
Link
最終更新:2010年06月12日 12:08