---
title: kCMTextMarkupAttribute_RelativeFontSize
framework: coremedia
role: symbol
role_heading: Global Variable
path: coremedia/kcmtextmarkupattribute_relativefontsize
---

# kCMTextMarkupAttribute_RelativeFontSize

A font size as a percentage of the current default font size.

## Declaration

```swift
let kCMTextMarkupAttribute_RelativeFontSize: CFString
```

## Discussion

Discussion This attribute’s value must be a non-negative CFNumber. This is a number holding a percentage of the size of the calculated default font size. A value of 120 indicates 20% larger than the default font size. A value of 80 indicates 80% of the default font size. The default value of 100 indicates no size difference.

## See Also

### Fonts

- [kCMTextMarkupAttribute_FontFamilyName](coremedia/kcmtextmarkupattribute_fontfamilyname.md)
- [kCMTextMarkupAttribute_GenericFontFamilyName](coremedia/kcmtextmarkupattribute_genericfontfamilyname.md)
- [kCMTextMarkupAttribute_BaseFontSizePercentageRelativeToVideoHeight](coremedia/kcmtextmarkupattribute_basefontsizepercentagerelativetovideoheight.md)
