Example of the Font Menu Setup

The page contains an example of setting up font list in JSON format.

NOTE. On automatic conversion from XML to JSON, the "@" character, which does not need to be removed, appears before attributes.

"ItemsDictionary" :

{

//A List of Brushes must precede this item.

   "Font" :

  [

     {

        "IsItalic" : "False",

        "FontFamily" : "Verdana",

        "Size" : "11",

        "Id" : "BlackFont",

        "IsBold" : "False",

        "Color" : "Black"

     },

     {

       "IsItalic" : "False",

       "FontFamily" : "Calibri",

       "Size" : "10",

       "Id" : "WhiteFont",

       "IsBold" : "True",

       "Color" : "White"

     },

     {

       "IsItalic" : "False",

       "FontFamily" : "Verdana",

       "Size" : "15",

       "Id" : "ColoredFont",

       "IsBold" : "False",

       "Color" : "#ff000aee"

      },

     {

       "IsItalic" : "False",

       "FontFamily" : "Calibri",

       "Size" : "12",

       "Id" : "ToolTipFont",

       "IsBold" : "False",

       "Color" : "Black"

      }

  ]

//It is typically followed by the list of labels.

}

See also:

Font item