# `GSGlyph isEqualToGlyph:`

*Instance Method*

Whether another glyph has matching layer contents and core glyph settings.

## Declaration

```swift
func isEqual(to other: GSGlyph) -> Bool
```

```objc
- (BOOL) isEqualToGlyph:(GSGlyph *) other;
```

```python
isEqualToGlyph_(other: GSGlyph) -> bool
```

## Parameters

- `other` — The glyph to compare.

## Discussion

Unicode values, tags, naming and classification overrides, metrics and kerning settings, color, user data, glyph axes, and layers are compared. [`GSGlyph.baseString`](/Core/GlyphsCore/GSGlyph/baseString), [`GSGlyph.id`](/Core/GlyphsCore/GSGlyph/id), [`GSGlyph.glyphId`](/Core/GlyphsCore/GSGlyph/glyphId), lock state, parent, change tracking, and undo history are not compared. This method does not replace `NSObject` identity equality.

## See Also

### Copying and Equality

- [`GSGlyph copyWithOptions:`](/Core/GlyphsCore/GSGlyph/copyWithOptions:) — Creates a detached copy with selected layer and editing content.

