Inherits from NSObject
Conforms to GSIdentifiableParameter
Declared in GSMetric.h

Overview

metrics value entry

Properties

filter

a filter that allows to show the guide only in certain glyphs

@property (nonatomic, strong, nullable) NSPredicate *filter

font

access to the containing font

@property (weak, nonatomic, nullable) GSContainer *font

horizontal

The horizontal.

@property (nonatomic) BOOL horizontal

id

a unique identifier

@property (nonatomic, strong) NSString *id

title

the descriptive name as shown in the UI

@property (nonatomic, readonly) NSString *title

titles

the descriptive elements as shown in the UI

@property (nonatomic, readonly) NSArray *titles

type

the mentrics type

@property (nonatomic, assign) GSMetricsType type

Instance Methods

initWithDict:format:

init from property list

- (instancetype)initWithDict:(NSDictionary *)dict format:(GSFormatVersion)formatVersion

propertyListValueFormat:

Returns the content of the object to store it in pList.

- (NSDictionary *)propertyListValueFormat:(GSFormatVersion)format

Parameters

format

the version of the dict

Discussion

This is used to store the data in the .glyphs file.

setFilterString:

convenient setter to use predicat string to set the filter

- (void)setFilterString:(NSString *)filterString