---
title: CGFontRelease
framework: coregraphics
role: symbol
role_heading: Function
path: coregraphics/cgfontrelease
---

# CGFontRelease

Decrements the retain count of a font.

## Declaration

```occ
extern void CGFontRelease(CGFontRef font);
```

## Parameters

- `font`: The font to release.

## Discussion

Discussion This function is equivalent to CFRelease, except that it does not cause an error if the font parameter is NULL.

## See Also

### Retaining and Releasing a CGFont Object

- [CGFontRetain](coregraphics/cgfontretain.md)
