# A3DPDFDocumentEmbedFont

A3DStatus `A3DPDFDocumentEmbedFont`(const A3DPDFDocument *pDoc, const A3DUTF8Char *pcFontName, const char *pcEncodingName, A3DPDFELanguage eLanguage)
  `A3DStatus` A3DPDFDocumentEmbedFont(const `A3DPDFDocument`* pDoc, const `A3DUTF8Char`* pcFontName, const char pcEncodingName, `A3DPDFELanguage` eLanguage)

  Function to embed a font in a PDF document.

  The font must be embedded before using it in the document. The document must contain at least one page before calling this function.

  Parameters

  > pDoc: The document in which the font will be embedded.

  > pcFontName: The name of the font

  > pcEncodingName: The encoding of the font

  > eLanguage: The language of the font

  Returns

  > A3D_SUCCESS in case of success or an error code

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Exchange in your own language, or choose a sample question below to start a conversation:

What is HOOPS Exchange?
What are the latest release notes for HOOPS Exchange?
How do I start evaluating HOOPS Exchange?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...