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

# XmMapSegmentEncoding(3)

A compound string function that returns the compound text encoding format associated with the specified font list tag

## NAME

**XmMapSegmentEncoding** — A compound string function that returns the compound text encoding format associated with the specified font list tag

## SYNOPSIS

```
#include <Xm/Xm.h>
char * XmMapSegmentEncoding(
char *fontlist_tag);
```

## DESCRIPTION

**XmMapSegmentEncoding** searches the segment encoding registry for an entry that matches the specified font list tag and returns a copy of the associated compound text encoding format. The application is responsible for freeing the storage associated with the returned data by calling **XtFree**.

- *fontlist\_tag*

  Specifies the compound string font list tag

## RETURN

Returns a copy of the associated compound text encoding format if the font list tag is found in the registry; otherwise, returns NULL.

## RELATED

[**XmCvtXmStringToCT**(3)](/XmCvtXmStringToCT/3.md), [**XmFontList**(3)](/XmFontList/3.md), [**XmRegisterSegmentEncoding**(3)](/XmRegisterSegmentEncoding/3.md), and [**XmString**(3)](/XmString/3.md).
