# GraffitiFontPicker
Class Inherits GraffitiSuite.BaseCanvas
## About
GraffitiFontPicker provides an interface and functionality for selecting system fonts. This includes loading/saving/displaying recent and favorite fonts, as well as search functionality.
## Preview



Previous
Next
## Compatibility
### Framework API Version
| 1.0 | 2.0 |
| :---: | :---: |
| True | True |
### Desktop
| 32-Bit | 64-Bit |
| :---: | :---: |
| True | True |
## Attributes
| Name | Value |
| --- | --- |
| DefaultEvent | "Change" |
## Event Definitions
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| Change | (None) | (None) | Fires when the selected font has changed. |
| Opening | (None) | (None) | (None) |
## Methods
| Name | Parameters | Return Type | Description |
| --- | :---: | :---: | --- |
| AddFavorite | item as GraffitiFontPickerItem <br> saveFile as Boolean = True | (None) | Adds the specified item to the Favorites list. |
| AddRecent | item as GraffitiFontPickerItem <br> saveFile as Boolean = True | (None) | Adds the specified item to the Recent list. |
| Count | (None) | Integer | Returns a count of all currently loaded fonts. |
| Destructor | (None) | (None) | (None) |
| Item | itemIndex as Integer | GraffitiFontPickerItem | Returns the GraffitiFontPickerItem at itemIndex. |
| RemoveFavorite | item as GraffitiFontPickerItem <br> saveFile as Boolean = True | (None) | Removes a favorite. |
| RemoveRecent | item as GraffitiFontPickerItem <br> saveFile as Boolean = True | (None) | Removes a recent. |
| SelectItem | item as GraffitiFontPickerItem | (None) | Selects the specified item, and adds it to the Recents list. |
## Properties
| Name | Type | Default Value | Description |
| --- | :---: | :---: | --- |
| AlwaysShowScrollbars | Boolean | (None) | Determines if scrollbars are visible based on cursor position or always visible. |
| ClearText | String | (None) | Text displayed in the buttons used to eliminate all items from Recent and Favorites sections. |
| MaxRecents | Integer | (None) | Maximum number of saved recent selections. |
| RowHeight | Integer | (None) | Height of each font's row. |
| SearchBackgroundColor | Color | (None) | Color of the searchbar's background. |
| SearchPlaceholder | String | (None) | Text displayed when the SearchField is not visible. |
| SearchPlaceholderColor | Color | (None) | Color used to draw placeholder text. |
| ShowFavorites | Boolean | (None) | Determines the visibility of the “Favorites” section. |
| ShowRecents | Boolean | (None) | Determines the visibility of the “Recents” section. |
| ShowSearch | Boolean | (None) | Determines the visibility of the “Search” section. |
| Value | String | (None) | The currently selected font name. |