Skip to content

Commit b99e34c

Browse files
committed
Allow custom font family
1 parent 42f9b7c commit b99e34c

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Diff for: src/Plotly.NET/StyleParams.fs

+17-2
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,22 @@ module StyleParam =
376376
/// Names of installed font families
377377
[<RequireQualifiedAccess>]
378378
type FontFamily =
379-
| Arial | Balto | Courier_New | Consolas | Droid_Sans | Droid_Serif | Droid_Sans_Mono | Gravitas_One | Old_Standard_TT | Open_Sans | Overpass | PT_Sans_Narrow | Raleway | Times_New_Roman
380-
379+
| Arial
380+
| Balto
381+
| Courier_New
382+
| Consolas
383+
| Droid_Sans
384+
| Droid_Serif
385+
| Droid_Sans_Mono
386+
| Gravitas_One
387+
| Old_Standard_TT
388+
| Open_Sans
389+
| Overpass
390+
| PT_Sans_Narrow
391+
| Raleway
392+
| Times_New_Roman
393+
| Custom of string
394+
381395
static member toString = function
382396
| Arial -> "Arial"
383397
| Balto -> "Balto"
@@ -393,6 +407,7 @@ module StyleParam =
393407
| PT_Sans_Narrow -> "PT Sans Narrow"
394408
| Raleway -> "Raleway"
395409
| Times_New_Roman -> "Times New Roman"
410+
| Custom name -> name
396411

397412
static member convert = FontFamily.toString >> box
398413

0 commit comments

Comments
 (0)