cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent 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 it seems to only address colour fills. Is there a way to setup a font family selector in the custom visual I am developing?

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: Font family selector in capabilities

Hello @Dave0145,

 

Power BI Custom Visuals API doesn't support font family in capabilities.

This feature is in our backlog, but we can't provide any ETA.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Highlighted
Frequent Visitor

Re: Font family selector in capabilities

OK - thanks for letting me know @v-viig. I'll look forward to implementing that in my custom visuals once it is available.

Highlighted
Helper II
Helper II

Re: Font family selector in capabilities

@v-viig

 

Now this font type capabilities available as a property in custom visual if so then how we can implement it.

 

Thanks

Highlighted
Community Champion
Community Champion

Re: Font family selector in capabilities

We'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

pbicvsupport@microsoft.com

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.

Top Solution Authors