1. 12 10月, 2018 4 次提交
    • D
      Refactor the selection of script and language tags · 91067716
      David Corbett 提交于
      The old hb-ot-tag.cc functions, `hb_ot_tags_from_script` and
      `hb_ot_tag_from_language`, are now wrappers around a new function:
      `hb_ot_tags`. It converts a script and a language to arrays of script
      tags and language tags. This will make it easier to add new script tags
      to scripts, like 'dev3'. It also allows for language fallback chains;
      nothing produces more than one language yet though.
      
      Where the old functions return the default tags 'DFLT' and 'dflt',
      `hb_ot_tags` returns an empty array. The caller is responsible for
      using the default tag in that case.
      
      The new function also adds a new private use subtag syntax for script
      overrides: "x-hbscabcd" requests a script tag of 'abcd'.
      
      The old hb-ot-layout.cc functions,`hb_ot_layout_table_choose_script` and
      `hb_ot_layout_script_find_language` are now wrappers around the new
      functions `hb_ot_layout_table_select_script` and
      `hb_ot_layout_script_select_language`. They are essentially the same as
      the old ones plus a tag count parameter.
      
      Closes #495.
      91067716
    • D
      Replace "ISO 639" with "BCP 47" · a03f5f4d
      David Corbett 提交于
      `hb_language_from_string` accepts not only ISO 639 but also BCP 47. Not
      all ISO 639 codes are valid BCP 47 tags but the function does not accept
      overlong language subtags anyway.
      a03f5f4d
    • B
      [aat] Apply kerx if GPOS kern was not applied · 0b9d60e1
      Behdad Esfahbod 提交于
      Ned tells me this is what Apple does.
      0b9d60e1
    • B
      Minor · b59a428a
      Behdad Esfahbod 提交于
      b59a428a
  2. 11 10月, 2018 36 次提交