class Harfbuzz::Face

Attributes

hb_face[R]

Public Class Methods

new(blob, face_index=0) click to toggle source
# File lib/harfbuzz/face.rb, line 17
def initialize(blob, face_index=0)
  blob = Blob.new(blob) unless blob.kind_of?(Blob)
  @hb_face = Harfbuzz.hb_face_create(blob.hb_blob, face_index)
  define_finalizer(:hb_face_destroy, @hb_face)
end

Public Instance Methods

glyph_count() click to toggle source
# File lib/harfbuzz/face.rb, line 31
def glyph_count
  Harfbuzz.hb_face_get_glyph_count(@hb_face)
end
index() click to toggle source
# File lib/harfbuzz/face.rb, line 23
def index
  Harfbuzz.hb_face_get_index(@hb_face)
end
upem() click to toggle source
# File lib/harfbuzz/face.rb, line 27
def upem
  Harfbuzz.hb_face_get_upem(@hb_face)
end