Forum Discussion
Dave0145
9 years agoFrequent Visitor
Font family selector in capabilities
I can see how to setup a colour selector in capabilities, and have looked at VisualContracts.d.ts in the custom-visuals github repository and can see the StructuralTypeDescriptor definition there but...
anandsoftweb
Advocate V
8 years ago
Now this font type capabilities available as a property in custom visual if so then how we can implement it.
Thanks
v-viig
Community Champion
8 years agoWe'd recommend to use enumeration to define what font families custom visual supports.
"fontFamily": {
"displayName": "Font family",
"type": {
"enumeration": [
{
"displayName": "Default",
"description": "helvetica, arial, sans-serif",
"value": "helvetica, arial, sans-serif"
},
{
"displayName": "Arial",
"value": "Arial"
},
{
"displayName": "Arial Black",
"value": "\"Arial Black\""
},
{
"displayName": "Arial Unicode MS",
"value": "\"Arial Unicode MS\""
},
{
"displayName": "Calibri",
"value": "Calibri"
},
{
"displayName": "Cambria",
"value": "Cambria"
},
{
"displayName": "Cambria Math",
"value": "\"Cambria Math\""
},
{
"displayName": "Candara",
"value": "Candara"
},
{
"displayName": "Comic Sans MS",
"value": "\"Comic Sans MS\""
},
{
"displayName": "Consolas",
"value": "Consolas"
},
{
"displayName": "Constantia",
"value": "Constantia"
},
{
"displayName": "Corbel",
"value": "Corbel"
},
{
"displayName": "Courier New",
"value": "\"Courier New\""
},
{
"displayName": "Georgia",
"value": "Georgia"
},
{
"displayName": "Lucida Sans Unicode",
"value": "\"Lucida Sans Unicode\""
},
{
"displayName": "Segoe (Bold)",
"value": "\"Segoe UI Bold\", wf_segoe-ui_bold, helvetica, arial, sans-serif"
},
{
"displayName": "Segoe UI",
"value": "\"Segoe UI\", wf_segoe-ui_normal, helvetica, arial, sans-serif"
},
{
"displayName": "Segoe UI Light",
"value": "\"Segoe UI Light\", wf_segoe-ui_bold, helvetica, arial, sans-serif"
},
{
"displayName": "Symbol",
"value": "Symbol"
},
{
"displayName": "Tahoma",
"value": "Tahoma"
},
{
"displayName": "Times New Roman",
"value": "\"Times New Roman\""
},
{
"displayName": "Trebuchet MS",
"value": "\"Trebuchet MS\""
},
{
"displayName": "Verdana",
"value": "Verdana"
},
{
"displayName": "Wingdings",
"value": "Wingdings"
}
]
}
}
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals