.. _group__a3d__tessmarkupfontkeydef:

############################
Masks for encoding font keys
############################


Sample Use of the masks for Encoding Font Keys
==============================================

.. code-block:: cpp

   /* typical use for encoding and decoding the second inner-code of font extra data */
   /* font style index / font size index / 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>`



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

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


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


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


