FontSize with decimal point

2 posts, 0 answers
  1. Ing. Jesus Manuel
    Ing. Jesus Manuel avatar
    16 posts
    Member since:
    Apr 2013

    Posted 09 Feb 2017 Link to this post

     Hi, we use the rich text editor with the ribbon bar that has all the options to edit the text, we can select the font size from the drop down, but this only have integer values, we need it to be able to type the size we desire (in this case with decimals), well at least we need a .5 (8.5, 9.5, 10.5, 11.5 and 12.5)

     

    Is there a way to achieve this? Please

     

    I'm using 2017 Q1

     

    Thank you all.

  2. Hristo
    Admin
    Hristo avatar
    1470 posts

    Posted 13 Feb 2017 Link to this post

    Hello Jesus,

    Thank you for writing.

    You can accomplish this task by creating a custom ribbon bar and override the logic responsible for adding the font sizes. I am attaching a sample project demonstrating this approach.

    Please also bear in mind that any sizes used in the loaded document will also be populated in the drop-down.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo
    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.
Back to Top