# Masks for encoding font keys

## Sample Use of the masks for Encoding Font Keys

    /*typicaluseforencodinganddecodingthesecondinner-codeoffontextradata*/
    /*fontstyleindex/fontsizeindex/attributes*/

    /*encoding*/
    code=Attributes+(FontSizeIndex<<12)+(FontStyleIndex<<24);

    /*decoding*/
    FontStyleIndex=(code&kA3DFontKeyStyle)>>24;
    FontSizeIndex=(code&kA3DFontKeySize)>>12;
    Attributes=(code&kA3DFontKeyAttrib);

    :ref:`Tessellation for Markups <group__a3d__tessmarkup>`

## Index

Preprocessor Definitions

- `kA3DFontKeyAttrib`
- `kA3DFontKeySize`
- `kA3DFontKeyStyle`

Preprocessor Definitions

`kA3DFontKeyAttrib`

  Mask to encode the font attributes of the `A3DFontKeyData`structure into the `A3DTessMarkupData`structure.

`kA3DFontKeySize`

  Mask to encode the font size index of the `A3DFontKeyData`structure into the `A3DTessMarkupData`structure.

`kA3DFontKeyStyle`

  Mask to encode the font style index of the `A3DFontKeyData`structure into the `A3DTessMarkupData`structure.

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...