Font Info

Font Info — Font metadata

Functions

Properties

gchar * checksum Read / Write
gchar * copyright Read / Write
gchar * description Read / Write
gchar * designer Read / Write
gchar * designer-url Read / Write
gchar * family Read / Write
gchar * filepath Read / Write
gchar * filesize Read / Write
gchar * filetype Read / Write
gint findex Read / Write
gint fsType Read / Write
gchar * license-data Read / Write
gchar * license-type Read / Write
gchar * license-url Read / Write
gint n-glyphs Read / Write
gint owner Read / Write
JsonArray * panose Read / Write
gchar * psname Read / Write
JsonObject * source-object Read / Write
gchar * style Read / Write
gchar * vendor Read / Write
gchar * version Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── FontManagerJsonProxy
        ╰── FontManagerFontInfo

Includes

#include <font-manager-font-info.h>

Description

FontManagerFontInfo holds detailed metadata 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
12
13
14
15
16
17
18
19
20
21
22
23
{
  "filepath" : string,
  "findex" : int,
  "family" : string,
  "style" : string,
  "owner" : int,
  "psname" : string,
  "filetype" : string,
  "n-glyphs" : int,
  "copyright" : string,
  "version" : string,
  "description" : string,
  "license-data" : string,
  "license-url" : string,
  "vendor" : string,
  "designer" : string,
  "designer-url" : string,
  "license-type" : string,
  "fsType" : int,
  "filesize" : string,
  "checksum" : string,
  "panose": JsonArray of ints,
}

Functions

font_manager_font_info_new ()

FontManagerFontInfo *
font_manager_font_info_new (void);

Returns

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

[transfer full]

Types and Values

FONT_MANAGER_TYPE_FONT_INFO

#define FONT_MANAGER_TYPE_FONT_INFO (font_manager_font_info_get_type())

FontManagerFontInfo

typedef struct _FontManagerFontInfo FontManagerFontInfo;

Property Details

The “checksum” property

  “checksum”                 gchar *

MD5 checksum.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “copyright” property

  “copyright”                gchar *

Copyright notice.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “description” property

  “description”              gchar *

Design description.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “designer” property

  “designer”                 gchar *

Name of font designer.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “designer-url” property

  “designer-url”             gchar *

Designer homepage.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “family” property

  “family”                   gchar *

Family name.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “filepath” property

  “filepath”                 gchar *

Filepath.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “filesize” property

  “filesize”                 gchar *

Size on disk.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “filetype” property

  “filetype”                 gchar *

Font format.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “findex” property

  “findex”                   gint

Face index.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: 0


The “fsType” property

  “fsType”                   gint

Embedding restrictions.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: 0


The “license-data” property

  “license-data”             gchar *

Embedded license data.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “license-type” property

  “license-type”             gchar *

License type.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “license-url” property

  “license-url”              gchar *

License URL.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “n-glyphs” property

  “n-glyphs”                 gint

Number of glyphs.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: 0


The “owner” property

  “owner”                    gint

Whether file is writable by user.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: 0


The “panose” property

  “panose”                   JsonArray *

Panose information as a JsonArray.

Owner: FontManagerFontInfo

Flags: Read / Write


The “psname” property

  “psname”                   gchar *

PostScript name.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “source-object” property

  “source-object”            JsonObject *

JsonObject source for this class.

Owner: FontManagerFontInfo

Flags: Read / Write


The “style” property

  “style”                    gchar *

Style.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “vendor” property

  “vendor”                   gchar *

Font foundry name.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL


The “version” property

  “version”                  gchar *

Font version.

Owner: FontManagerFontInfo

Flags: Read / Write

Default value: NULL

See Also

FontManagerJsonProxy