Pango.Font.get_font_map

### Method

# Pango Fontget_font_map

since: 1.10

#### Declaration [src]

    PangoFontMap*
    pango_font_get_font_map (
      PangoFont* font
    )

#### Description [src]

Gets the font map for which the font was created.

Note that the font maintains a weak reference to the font map, so if all references to font map are dropped, the font map will be finalized even if there are fonts created with the font map that are still alive. In that case this function will return `NULL`.

It is the responsibility of the user to ensure that the font map is kept alive. In most uses this is not an issue as a `PangoContext` holds a reference to the font map.

Available since: 1.10

#### Parameters

`font`

  Type: `PangoFont`

  A `PangoFont`.

  The argument can be `NULL`.

#### Return value

Type: `PangoFontMap`

The `PangoFontMap` for the font.

The returned data is owned by the instance.
The return value can be `NULL`.