1. 14 2月, 2018 3 次提交
  2. 13 2月, 2018 5 次提交
  3. 10 2月, 2018 6 次提交
  4. 09 2月, 2018 3 次提交
  5. 08 2月, 2018 7 次提交
  6. 07 2月, 2018 3 次提交
  7. 06 2月, 2018 6 次提交
  8. 03 2月, 2018 3 次提交
  9. 02 2月, 2018 3 次提交
  10. 01 2月, 2018 1 次提交
    • J
      libtxt: extend Minikin to find a fallback font if its font collection can not... · de34a3e2
      Jason Simmons 提交于
      libtxt: extend Minikin to find a fallback font if its font collection can not match a given character (#4623)
      
      Minikin layout uses a FontCollection containing a list of pre-selected fonts
      for a particular font family.  This patch extends the FontCollection to invoke
      a hook provided by libtxt if layout sees a character that can not be rendered
      by any font in the collection.
      
      * Change the Minikin lock to a recursive mutex.  This is required because the
        fallback font provider may create new fonts during a layout operation that
        already holds the lock.
      * Implement a fallback font provider hook that queries Skia for fonts matching
        an unrecognized character.
      * Maintain a cache of fallback fonts.  Prepopulate the cache with fonts
        covering some commonly used character classes.
      * Add a last resort font list for cases where Skia's font manager can not
        find any font for a character (similar to Blink's FontCache::getLastResortFallbackFont)
      de34a3e2