Skip to content
  • Igor Oliveira's avatar
    Bug 23104: Add a default line height compensation · 960d2f89
    Igor Oliveira authored and Matthew Finkel's avatar Matthew Finkel committed
    Many fonts have issues with their vertical metrics. they
    are used to influence the height of ascenders and depth
    of descenders. Gecko uses it to calculate the line height
    (font height + ascender + descender), however because of
    that idiosyncratic behavior across multiple operating
    systems, it can be used to identify the user's OS.
    
    The solution proposed in the patch uses a default factor
    to be multiplied with the font size, simulating the concept
    of ascender and descender. This way all operating
    systems will have the same line height only and only if the
    frame is outside the chrome.
    960d2f89