---
name: "XmFontListEntryGetFont"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmFontListEntryGetFont"
---

# XmFontListEntryGetFont(3)

A font list function that retrieves font information from a font list entry

## NAME

**XmFontListEntryGetFont** — A font list function that retrieves font information from a font list entry

## SYNOPSIS

```
#include <Xm/Xm.h>
XtPointer XmFontListEntryGetFont(
XmFontListEntry entry,
XmFontType *type_return);
```

## DESCRIPTION

**XmFontListEntryGetFont** retrieves font information for a specified font list entry. If the font list entry contains a font, *type\_return* returns **XmFONT\_IS\_FONT** and the function returns a pointer to an **XFontStruct**. If the font list entry contains a font set, *type\_return* returns **XmFONT\_IS\_FONTSET** and the function returns the **XFontSet**.

- *entry*

  Specifies the font list entry.

- *type\_return*

  Specifies a pointer to the type of the font element for the current entry. Valid values are **XmFONT\_IS\_FONT** and **XmFONT\_IS\_FONTSET**.

The returned **XFontSet** or **XFontStruct** is not a copy of the toolkit data and must not be freed.

## RETURN

Returns an **XFontSet** or a pointer to an **XFontStruct** structure.

## RELATED

[**XmFontList**(3)](/XmFontList/3.md), [**XmFontListEntryCreate**(3)](/XmFontListEntryCreate/3.md), [**XmFontListEntryGetTag**(3)](/XmFontListEntryGetTag/3.md) [**XmFontListEntryLoad**(3)](/XmFontListEntryLoad/3.md), and [**XmFontListNextEntry**(3)](/XmFontListNextEntry/3.md).
