locked
Windows Store App Font-Size Rendering Problem

    Question

  • Hello everyone, 

    I'm having some problem with Windows rendering a text. We set the font-size to 16pt. But when we send the document to a desktop publishing software application , the text is "smaller". We think that the Software (application.png) is rendering properly the font, but, somehow, Windows8 (windowsStoreApp.png) is displaying wrong the font Size.

    If you know something about this issue, or have some idea, I would appreciate any help.

    application  

    application.png

    windowsStoreApp

    windowsStoreApp.png

    Thanks in advance 



    • Edited by DavidFEG Wednesday, March 12, 2014 9:51 AM
    Wednesday, March 12, 2014 9:49 AM

Answers

  • U can try to set same size in px - css file... if i understand the question :/ And maybe you can do zoom with css too.

    And try with reset css or something to see if font was normalized.

    ...or try to debug it with DOM explorer... :/

    Tuesday, March 18, 2014 12:50 PM
  • Agree, directly apply another CSS style with bigger/smaller font size might be better if you think the original size is not good enough.

    But I still wondering why the font size is different from Store App and Desktop, did you apply some dpi changes on your desktop? More information see here: http://blogs.msdn.com/b/b8/archive/2012/03/21/scaling-to-different-screens.aspx

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, March 21, 2014 11:13 AM
    Moderator

All replies

  • Hi David,

    "But when we send the document to a desktop publishing software application" How you send the document to a desktop application?

    You mean use Windows.System.Launcher.launchFileAsync(file)?  

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, March 13, 2014 2:37 AM
    Moderator
  • Hi James,

    we send the document as an xml, this is not the problem. The problem is how we render the texts and the images.

    We tried to  use the msZoomTo() function, 

    //Div 
     var divId = document.getElementById("document");
               
      divId.msZoomTo({
          scaleFactor: 2.0,
          contentX: divId.style.left/2,
          contentY: divId.style.top/2,
                             
     });
               

    but we want to directly apply  zoom on the  div, and not to link this to a mouse event or whatever.

    Is that possible?



    Thanks in advance,


    Tuesday, March 18, 2014 10:05 AM
  • U can try to set same size in px - css file... if i understand the question :/ And maybe you can do zoom with css too.

    And try with reset css or something to see if font was normalized.

    ...or try to debug it with DOM explorer... :/

    Tuesday, March 18, 2014 12:50 PM
  • Agree, directly apply another CSS style with bigger/smaller font size might be better if you think the original size is not good enough.

    But I still wondering why the font size is different from Store App and Desktop, did you apply some dpi changes on your desktop? More information see here: http://blogs.msdn.com/b/b8/archive/2012/03/21/scaling-to-different-screens.aspx

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, March 21, 2014 11:13 AM
    Moderator