1. 05 Feb, 2018 1 commit
    • Benjamin Otte's avatar
      css: Add a workaround for gtk_widget_override_font() · 6ff326a8
      Benjamin Otte authored
      The problem here is that the CSS machinery expects font sizes to be in
      pixels, but gtk_widget_override_font() provides a value in point and the
      CSS machinery has no ability to query the DPI and convert.
      
      This patch changes the dconversion DPI we use from a hardcoded 96 to the
      default screen's DPI, which should work better than before.
      This will of course not listen to changes in the default screen's DPI,
      but that shouldn't be a problem.
      
      People who want to workaround this should use gtk_widget_override_font()
      with a font that has an absolute size set via
      pango_font_description_set_absolute_size (size * PANGO_SCALE *
                                                gdk_screen_get_resolution (screen));
      
      https://bugzilla.gnome.org/show_bug.cgi?id=774248
      6ff326a8
  2. 28 Jul, 2016 1 commit
  3. 18 Apr, 2016 3 commits
  4. 12 Apr, 2016 1 commit
    • Matt Watson's avatar
      css: always get default font size in pixels · df08fc91
      Matt Watson authored
      Fixes a couple bugs...
      
       - Pixel font sizes in css would render as point sizes.
      
       - For em font sizes, where the parent size was set and not default, we would
         incorrectly convert a pixel value from points to pixels.
      
      We'll always grab the default font size in pixels so we don't keep confusing
      things.
      
      Worth noting that gtk css font-size will still behave differently than the
      web. Pango interprets font-size differently.
      df08fc91
  5. 13 Feb, 2016 2 commits
  6. 23 Dec, 2015 1 commit
  7. 22 Dec, 2015 1 commit
  8. 06 Jul, 2015 1 commit
  9. 05 Jul, 2015 1 commit
  10. 24 Oct, 2014 1 commit
  11. 28 Aug, 2014 1 commit
  12. 31 Jul, 2014 2 commits
  13. 07 Jul, 2014 1 commit
  14. 11 May, 2014 1 commit
  15. 01 May, 2014 1 commit
  16. 30 Nov, 2012 1 commit
  17. 08 Nov, 2012 1 commit
  18. 16 Oct, 2012 1 commit
    • Matthias Clasen's avatar
      Fix css parser tests · 4e09e180
      Matthias Clasen authored
      Parsing a shorthand background property was running into unexpected
      errors when trying position values where there were none. To fix this,
      introduce a try_parse variant of the position parse function that
      silently returns NULL.
      4e09e180
  19. 17 Sep, 2012 1 commit
  20. 15 May, 2012 3 commits
  21. 11 May, 2012 2 commits
  22. 17 Apr, 2012 12 commits