jQWidgets Forums

jQuery UI Widgets Forums General Discussions Fixed Font Size

Tagged: 

This topic contains 5 replies, has 3 voices, and was last updated by  Peter Stoev 12 years, 12 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Fixed Font Size #3764

    DH
    Member

    Looking at the stylesheets for jQWidgets, all font sizes are specified in pixels. So the font sizes are fixed and do not respond to changing the text size in your browser. If I change the stylesheets to make all the font sizes variable (% or em), will this have a negative impact on any of the widgets? If not, would you consider using variable font sizes in a future release?

    Fixed Font Size #3777

    Peter Stoev
    Keymaster

    There’s no problem to set the Font in % or em, but if you set a very big or a very small font size, the widgets may not look good. Also the widget’s width or height will not be auto-changed depending on the font’s size.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Fixed Font Size #4317

    Daniel
    Member

    I have not digged too deep into this topic (I’m just a mislead C++ dev :-)), but wouldn’t it be nice to have a theme that in general is based on em to allow for more scalability.

    Fixed Font Size #4318

    Peter Stoev
    Keymaster

    There are positive and negative things depending on what Font to be used. However, the Fonts styles in our Widgets are fully editable in the CSS files provided with the product. If you target pixel-perfect representation, then you should use Pixel(px). If you target scalability, I think that it is better to use “Percent”(%) units instead of “Ems”(em), but this is mostly a personal decision.

    Fixed Font Size #4334

    Daniel
    Member

    Sorry, but I think you misunderstood me. I meant using ’em’ as a base for everything, especially sizes. I am currently building an HMI with fullscreen body (no scrollbars ;-)) that might have to work for different resolutions. Since I don’t want to adjust the layout for every resolution I played around with only using ’em’ for positions and sizes and just adjusting the font size for the body depending on the resolution.
    But I think this is getting a little bit off topic now…

    Fixed Font Size #4336

    Peter Stoev
    Keymaster

    I understand. We work on providing full support for Percent ‘%’ Size i.e to be possible to set the ‘width’ and ‘height’ properties to percentage values. After that we will add support for ’em’ units, too.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.