Class: Fontisan::Ufo::Compile::FeatureWriters::FeatureOutput

Inherits:
Struct
  • Object
show all
Defined in:
lib/fontisan/ufo/compile/feature_writers/base.rb

Overview

Value object returned by every feature writer's #write method. Carries the structured data the corresponding table builder needs to encode the binary subtable.

Writers return nil instead when the UFO has no data for the feature — the compiler skips nil outputs.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



13
14
15
# File 'lib/fontisan/ufo/compile/feature_writers/base.rb', line 13

def data
  @data
end

#feature_tagObject

Returns the value of attribute feature_tag

Returns:

  • (Object)

    the current value of feature_tag



13
14
15
# File 'lib/fontisan/ufo/compile/feature_writers/base.rb', line 13

def feature_tag
  @feature_tag
end

#lookup_typeObject

Returns the value of attribute lookup_type

Returns:

  • (Object)

    the current value of lookup_type



13
14
15
# File 'lib/fontisan/ufo/compile/feature_writers/base.rb', line 13

def lookup_type
  @lookup_type
end

#table_tagObject

Returns the value of attribute table_tag

Returns:

  • (Object)

    the current value of table_tag



13
14
15
# File 'lib/fontisan/ufo/compile/feature_writers/base.rb', line 13

def table_tag
  @table_tag
end