---
name: "mfont_encapsulate"
section: "3m17n"
platform: "linux"
package: "m17n-docs"
version: "1.8.4-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mfont_encapsulate"
---

# mfont\_encapsulate(3m17n)

## NAME

mfont\_encapsulate -

## SYNOPSIS

**MFont**\* **mfont\_encapsulate** (**MFrame** \* *frame*, MSymbol *data\_type*, void \* *data*)

## DESCRIPTION

Encapusulate a font. The **mfont\_encapsulate()** functions realizes a font by encapusulating data **data** or type **data\_type** on **frame**. Currently **data\_tape** is **Mfontconfig** or **Mfreetype**, and **data** points to an object of FcPattern or FT\_Face respectively.

## RETURN VALUE

If the operation was successful, a realized font is returned. Otherwise NULL is return.

## SEE ALSO

**mfont\_close()**. \

## COPYRIGHT

Copyright (C) 2001 Information-technology Promotion Agency (IPA)\
 Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)\
 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License  \<http://www.gnu.org/licenses/fdl.html\>.
