1. 16 Jun, 2008 1 commit
  2. 13 Jun, 2008 1 commit
    • Jason Rumney's avatar
      * w32fns.c (Fw32_select_font): Removed old font API function. · 6fe9826d
      Jason Rumney authored
      * w32font.c (logfont_to_fcname): New function.
      (Fx_select_font): New font dialog function compatible with
      GTK/fontconfig version.
      * font.c (font_style_symbolic_from_value): New function.
      (font_style_symbolic): Use it.
      * font.h (font_style_symbolic_from_value): Declare new function.
  3. 12 Jun, 2008 1 commit
  4. 11 Jun, 2008 1 commit
  5. 10 Jun, 2008 1 commit
  6. 01 Jun, 2008 1 commit
  7. 29 May, 2008 2 commits
  8. 27 May, 2008 2 commits
  9. 26 May, 2008 3 commits
  10. 22 May, 2008 1 commit
  11. 20 May, 2008 1 commit
  12. 14 May, 2008 2 commits
    • Glenn Morris's avatar
    • Kenichi Handa's avatar
      Throughout the file, delete all USE_FONT_BACKEND · 5f18d119
      Kenichi Handa authored
      conditionals.  Don't check enable_font_backend.  Delete all codes
      used only when USE_FONT_BACKEND is not defined.
      (w32font_open): Return a font-object.  Make a font-object by
      font_make_object.  Adjusted for the change of struct w32font_info.
      (w32font_close): Don't free struct font.  Adjusted for the change
      of struct w32font_info.
      (w32font_encode_char, w32font_text_extents, w32font_draw):
      Adjusted for the change of struct w32font_info.
      (w32font_draw): Likewise.
      (w32font_list_internal): Return a list, not vector.
      (w32font_open_internal): Change the 4th arg to font-object.
      Adjusted for the change of struct w32font_info and font-object
      (add_font_name_to_list): Don't downcase names.
      (w32_enumfont_pattern_entity): Make a font-entity by
      font_make_entity.  Adjusted for the format change of font-entity.
      Use FONT_SET_STYLE to set a style-related font property.  If a
      font is scalable, set avgwidth property to 0.  Set font-entity
      property by font_put_extra.
      (font_matches_spec): Adjusted for the format change of
      (w32_weight_table, w32_decode_weight): New variables.
      (w32_encode_weight): New function.
      (fill_in_logfont): Adjusted for the format change of font-spec.
      (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
      weight value.
      (w32font_driver): Adjusted for the change of struct font_driver.
      (w32font_open_internal): Change last argument from
      w32font_info struct to font object.  Fill in font object from
      font_entity.  Get Outline metrics if possible.  Use them to
      calculate underline position and thickness.  Use xlfd name as name
      property.  Don't set codepage.
      (w32font_open): Pass font_object to w32font_open_internal.  Don't
      update dpyinfo->smallest_font_height and
      (w32font_draw): Use s->font.
      (clear_cached_metrics): Don't clear non-existent blocks.
  13. 14 Apr, 2008 1 commit
  14. 08 Apr, 2008 1 commit
    • Jason Rumney's avatar
      (Qja, Qko, Qzh): New symbols. · 8f112d52
      Jason Rumney authored
      (syms_of_w32font): Initialise them.
      (font_matches_spec): Use them to filter by language.
      (recompute_cached_metrics): Remove function.
      (compute_metrics, clear_cached_metrics): New functions.
      (w32font_encode_char): Use them to manage metric cache.
      (w32font_text_extents): Cache metrics for all glyphs on demand.
      Delay converting glyph indices to WORD until needed.
      (w32font_open_internal): Initialize metric cache to empty.
      (registry_to_w32_charset): Charset should always be a symbol.
      (fill_in_logfont, list_all_matching_fonts): Family should always be a symbol.
  15. 04 Apr, 2008 1 commit
  16. 03 Apr, 2008 1 commit
    • Jason Rumney's avatar
      (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot) · 56df6710
      Jason Rumney authored
      (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
      (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
      (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
      (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
      (Qphonetic): New symbols.
      (syms_of_w32font): Initialize them.
      (font_supported_scripts): Use them.
      (w32font_list_family): List all charsets.
      (w32font_text_extents, recompute_cached_metrics): Fix metric
      (w32_enumfont_pattern_entity): Make full_type a DWORD.
      Give opentype fonts their own format.
      (font_matches_spec): New arguments backend and logfont.
      Handle :otf spec for uniscribe backend.
      (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
      (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
  17. 11 Mar, 2008 1 commit
  18. 07 Mar, 2008 1 commit
  19. 04 Mar, 2008 1 commit
  20. 03 Mar, 2008 3 commits
    • Juanma Barranquero's avatar
      Include math.h. · 09fe06b7
      Juanma Barranquero authored
    • Jason Rumney's avatar
      (recompute_cached_metrics): Change font arg to w32font_info. · 54efdcd1
      Jason Rumney authored
      Compute options separately.
      (w32font_open_internal): Set glyph_idx before caching metrics.
    • Jason Rumney's avatar
      (Quniscribe, QCformat): New symbols. · 34fd2d28
      Jason Rumney authored
      (syms_of_w32font): Define them.
      (w32font_has_char): Indicate uncertainty.
      (w32font_encode_char): Encode as glyph point. Make static.
      (recompute_cached_metrics): New function.
      (w32font_open_internal): Use it. Set font to use glyph points
      initially. Set format based on type of font.
      (w32font_text_extents, w32font_draw): Optionally use glyph points.
      (w32_enumfont_pattern_entity): Accept backend arg. Set type based
      on it. Set format based on information available here.
      (add_font_entity_to_list): Identify backend based on opentype_only.
  21. 01 Mar, 2008 2 commits
  22. 25 Feb, 2008 2 commits
  23. 24 Feb, 2008 1 commit
  24. 06 Feb, 2008 1 commit
  25. 05 Feb, 2008 1 commit
  26. 04 Feb, 2008 2 commits
  27. 02 Feb, 2008 1 commit
  28. 20 Dec, 2007 2 commits
    • Jason Rumney's avatar
      (logfonts_match): Don't check adstyle here. · 4f2a2ee2
      Jason Rumney authored
      (font_matches_spec): Check here against physical font instead.
      (add_font_entity_to_list): Avoid some substitutions.
    • Jason Rumney's avatar
      (w32font_text_extents): Dereference selected_frame. · 9e1a2995
      Jason Rumney authored
      (w32_enumfont_pattern_entity): Map generic family to adstyle using
      most common hyphenless variation.
      (logfonts_match): Check generic family.
      (font_matches_spec): Don't check generic family here.
      (fill_in_logfont): Set generic family based on adstyle.
      + changes to sans-serif constants to avoid hyphen (for xfld compatibility)
  29. 19 Dec, 2007 1 commit
    • Jason Rumney's avatar
      (w32font_open): Remove debug code. · 593fe38e
      Jason Rumney authored
      (w32font_match_internal, w32_font_open_internal): Remove experimental change.
      Last checkin should have had the following comment:
      (w32font_text_extents): Don't use the frame stored in the
      font, as it may have been deleted.