.. _group__a3d__tessmarkupfontkeydef:

############################
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
=====

.. rubric:: Preprocessor Definitions


.. rst-class:: api-xref-list


* :c:macro:`~kA3DFontKeyAttrib`
* :c:macro:`~kA3DFontKeySize`
* :c:macro:`~kA3DFontKeyStyle`


.. rst-class:: kind-group kind-preprocessor-definition

.. rubric:: Preprocessor Definitions
   :class: kind-group-title


.. c:macro:: kA3DFontKeyAttrib

      Mask to encode the font attributes of the :c:struct:`~A3DFontKeyData`\ structure into the :c:struct:`~A3DTessMarkupData`\ structure.
      



.. c:macro:: kA3DFontKeySize

      Mask to encode the font size index of the :c:struct:`~A3DFontKeyData`\ structure into the :c:struct:`~A3DTessMarkupData`\ structure.
      



.. c:macro:: kA3DFontKeyStyle

      Mask to encode the font style index of the :c:struct:`~A3DFontKeyData`\ structure into the :c:struct:`~A3DTessMarkupData`\ structure.
      




