This is a migrated thread and some comments may be shown as answers.

Font-size and Font-family

1 Answer 1084 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Keith Jusas
Top achievements
Rank 1
Keith Jusas asked on 27 Mar 2017, 07:03 PM

Hello Team,

When I select 12px in Html Editor it is being set as "9" in Word Document.

Similarly

13 px in Editor is being set as "10"

14px as  "10.5"

15px as "11.5" 

Is there any option that I can set "14.5px" in editor so that will be "11" in word document ? 

Please find the attached word document for reference.

Also I need to add "Calibri" in Font-Names drop down. 

Can you please help me with this issue ASAP ? Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 29 Mar 2017, 12:06 PM

Hello Keith ,

You can define your own collection of font sizes and names to use in the editor tools. Like here: http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#configuration-tools.items

With Razor syntax that will look so:

@(Html.Kendo().Editor()
    .Name("Editor")
    .Tools(tools => tools
        .FontName(fonts => fonts
            .Add("Arial", "Arial")
            .Add("Calibry", "Calibry")
        )
        .FontSize(sizes => sizes
            .Add("12px", "12px")
            .Add("14.5px", "14.5px")
        )
    )
)

Regards,
Ianko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Editor
Asked by
Keith Jusas
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or