---
name: "GdipCreateFont"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GdipCreateFont"
---

# GdipCreateFont(3w)

## NAME

**GdipCreateFont** (GDIPLUS.@)

## SYNOPSIS

GpStatus WINGDIPAPI  GdipCreateFont\
  (\
   GDIPCONST GpFontFamily\* *fontFamily*,\
   REAL                    *emSize*,\
   INT                     *style*,\
   Unit                    *unit*,\
   GpFont\*\*                *font*\
  )

## DESCRIPTION

Create a new *font* based off of a FontFamily.

## PARAMS

\**fontFamily* **\[In\]**  Family to base the *font* off of.

*emSize* **\[In\]**  Size of the *font*.

*style* **\[In\]**  Bitwise **OR** of FontStyle enumeration.

*unit* **\[In\]**  Unit *emSize* is measured in.

\*\**font* **\[In\]**  the resulting Font object.

## RETURNS

**SUCCESS:** Ok

**FAILURE:** InvalidParameter if fontfamily or *font* is **NULL**.

**FAILURE:** FontFamilyNotFound if an invalid FontFamily is given.

## NOTES

UnitDisplay is unsupported. *emSize* is stored separately from lfHeight, to hold the fraction.

## IMPLEMENTATION

Declared in **"gdiplusflat.h"**.

Implemented in **"dlls/gdiplus/font.c"**.
