Class: Fontisan::Stitcher::CollectionResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/fontisan/stitcher/collection_result.rb

Overview

Return value of #write_collection. Carries the output path, total bytes, and one SubfontStats per declared subfont.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bytesObject

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



12
13
14
# File 'lib/fontisan/stitcher/collection_result.rb', line 12

def bytes
  @bytes
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



12
13
14
# File 'lib/fontisan/stitcher/collection_result.rb', line 12

def path
  @path
end

#subfontsObject

Returns the value of attribute subfonts

Returns:

  • (Object)

    the current value of subfonts



12
13
14
# File 'lib/fontisan/stitcher/collection_result.rb', line 12

def subfonts
  @subfonts
end

Instance Method Details

#face_countObject



13
14
15
# File 'lib/fontisan/stitcher/collection_result.rb', line 13

def face_count
  subfonts.size
end