## Font

Font — Font style information

## Functions

FontManagerFont * | font_manager_font_new ()

## Properties

char * | description | Read / Write
char * | family | Read / Write
char * | filepath | Read / Write
int | findex | Read / Write
int | slant | Read / Write
JsonObject * | source-object | Read / Write
int | spacing | Read / Write
char * | style | Read / Write
int | weight | Read / Write
int | width | Read / Write

## Types and Values

#define | FONT_MANAGER_TYPE_FONT
| FontManagerFont

## Object Hierarchy

        GObject
        ╰── FontManagerJsonProxy
            ╰── FontManagerFont

## Includes

    #include <font-manager-font.h>

## Description

FontManagerFont holds basic style information for a single font.

The JsonObject backing this class should have the following structure:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11

    {
      "filepath" : string,
      "findex" : int,
      "family" : string,
      "style" : string,
      "spacing" : int,
      "slant" : int,
      "weight" : int,
      "width" : int,
      "description" : string,
    }

## Functions

### font_manager_font_new ()

    FontManagerFont *
    font_manager_font_new (void);

#### Returns

A newly created FontManagerFont. Free the returned object using ``g_object_unref()``.

[transfer full]

## Types and Values

### FONT_MANAGER_TYPE_FONT

    #define FONT_MANAGER_TYPE_FONT (font_manager_font_get_type())

### FontManagerFont

    typedef struct _FontManagerFont FontManagerFont;

## Property Details

### The `“description”` property

      “description”              char *

Pango font description.

Owner: FontManagerFont

Flags: Read / Write

Default value: NULL

### The `“family”` property

      “family”                   char *

Fontconfig family name.

Owner: FontManagerFont

Flags: Read / Write

Default value: NULL

### The `“filepath”` property

      “filepath”                 char *

Font filepath.

Owner: FontManagerFont

Flags: Read / Write

Default value: NULL

### The `“findex”` property

      “findex”                   int

Font face index.

Owner: FontManagerFont

Flags: Read / Write

Default value: 0

### The `“slant”` property

      “slant”                    int

Fontconfig slant.

Owner: FontManagerFont

Flags: Read / Write

Default value: 0

### The `“source-object”` property

      “source-object”            JsonObject *

JsonObject source for this class.

Owner: FontManagerFont

Flags: Read / Write

### The `“spacing”` property

      “spacing”                  int

Fontconfig spacing.

Owner: FontManagerFont

Flags: Read / Write

Default value: 0

### The `“style”` property

      “style”                    char *

Fontconfig style name.

Owner: FontManagerFont

Flags: Read / Write

Default value: NULL

### The `“weight”` property

      “weight”                   int

Fontconfig weight.

Owner: FontManagerFont

Flags: Read / Write

Default value: 0

### The `“width”` property

      “width”                    int

Fontconfig width.

Owner: FontManagerFont

Flags: Read / Write

Default value: 0

## See Also

FontManagerJsonProxy