New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Can we convert the font size into 'pt' instead of 'px'?


Product RadEditor for ASP.NET AJAX


The solution handles the following questions:

  • Can we convert the font size into 'pt' instead of 'px'?
  • How to configure the Real Font Size dropdown to show pt point values in its header?
  • How to change Pixel to Point size in the RealFontSizes dropdown of RadEditor?
  • Is there an event in the dropdown that calculates from px to pt?
  • How to change what's shown as default size in the dropdown list for sizes? Now, the default always shows in px, I would like it to show in pt.


Basically, RadEditor does not make any behind the scene font size conversions, the value shown in the header is the original one returned by the browser. The value shown in the RealFontSize dropdown header is the value returned by the browser according to the selected text in the content area.

The code solution below will help you switch from the default behavior of showing pixel values to points values in the dropdown header:

    .reDropdown.reRealFontSize {
        width: 60px;
<telerik:RadEditor runat="server" ID="RadEditor1">
            <telerik:EditorDropDown Name="RealFontSize"></telerik:EditorDropDown>
        <telerik:EditorRealFontSize Value="6pt" />
        <telerik:EditorRealFontSize Value="8.5pt" />
        <telerik:EditorRealFontSize Value="10pt" />
        <telerik:EditorRealFontSize Value="12pt" />
        <telerik:EditorRealFontSize Value="15pt" />
        <telerik:EditorRealFontSize Value="18pt" />
        <telerik:EditorRealFontSize Value="22pt" />
    <Content>We have some Sample text content without font size applied to it for the test<br/><span style="font-size: 18pt;">some content in points font size</span><br/> <span style="font-size: 12px;">another text in pixels</span></Content>
<script type="text/javascript">
    if (typeof (Telerik.Web.UI.Editor) != "undefined") {
        var originalGetValue = Telerik.Web.UI.Editor.RealFontSize.prototype.getValue;

        Telerik.Web.UI.Editor.RealFontSize.prototype.getValue = function (wnd, range) {
            var originalresult =, wnd, range);
            var resultInPoints = (parseFloat(originalresult) / 1.33).toFixed(2) + "pt";
            return resultInPoints;

For more information refer to the following forum thread: Change Pixel to Point size in RadEditor.

In this article