---
name: "AddFontResource16"
section: "3w"
platform: "linux"
package: "wine-doc"
version: "0.0.980315-1"
release: "Debian 2.0 (Hamm)"
platforms: ["linux"]
url: "https://new.carta.tech/AddFontResource16"
---

# AddFontResource16(3w)

\*

## NAME

AddFontResource16 - \*

## SYNOPSIS

**INT16 AddFontResource16(LPCSTR filename);**

## DESCRIPTION

Font Resource API					       \*\
 \*

AddFontResource16    (GDI.119)

Can be either .FON, or .FNT, or .TTF, or .FOT font file.

## FIXME

Load header and find the best-matching font in the fontList; fixup dfPoints if all metrics are identical, otherwise create new fontAlias. When soft font support is ready this will simply create a new fontResource ('filename' will go into the pfr-\>resource field) with FR\_SOFTFONT/FR\_SOFTRESOURCE flag set.

## SEE ALSO

[X11DRV\_FONT\_Init(3w)](/X11DRV_FONT_Init/3w.md), [XFONT\_GetFontObject(3w)](/XFONT_GetFontObject/3w.md), [XFONT\_GetFontStruct(3w)](/XFONT_GetFontStruct/3w.md), [XFONT\_GetFontInfo(3w)](/XFONT_GetFontInfo/3w.md), [X11DRV\_FONT\_SelectObject(3w)](/X11DRV_FONT_SelectObject/3w.md), [X11DRV\_EnumDeviceFonts(3w)](/X11DRV_EnumDeviceFonts/3w.md), [X11DRV\_GetTextExtentPoint(3w)](/X11DRV_GetTextExtentPoint/3w.md), [X11DRV\_GetTextMetrics(3w)](/X11DRV_GetTextMetrics/3w.md), [X11DRV\_GetCharWidth(3w)](/X11DRV_GetCharWidth/3w.md), [AddFontResource32A(3w)](/AddFontResource32A/3w.md), [AddFontResource32W(3w)](/AddFontResource32W/3w.md), [RemoveFontResource16(3w)](/RemoveFontResource16/3w.md), [RemoveFontResource32A(3w)](/RemoveFontResource32A/3w.md), [RemoveFontResource32W(3w)](/RemoveFontResource32W/3w.md)
