# `GSFont.colorSpace`

*Instance Property*

The RGB color space used by document colors in the font.

## Declaration

```swift
var colorSpace: GSColorSpace { get }
```

```objc
@property (nonatomic, strong, readonly) GSColorSpace * colorSpace;
```

```python
colorSpace() -> GSColorSpace
```

## Discussion

This includes color layers, color palettes, and other colors that affect exported artifacts.

KVO compliant.

## See Also

### Colors

- [`GSFont setColorSpace:usingMethod:`](/Core/GlyphsCore/GSFont/setColorSpace:usingMethod:) — Changes the color space used by document colors in the font.
- [`GSFont matchingColorFromColor:`](/Core/GlyphsCore/GSFont/matchingColorFromColor:) — Returns the given color converted to match the color space of the font.
- [`GSFont transformColorsUsingBlock:`](/Core/GlyphsCore/GSFont/transformColorsUsingBlock:) — Passes each document color to the given block and updates it if the block returns a new color.

