1. 21 Aug, 2006 1 commit
  2. 01 Aug, 2006 1 commit
    • Kenichi Handa's avatar
      (font_parse_fcname): Don't change :name property of FONT. · e950d6f1
      Kenichi Handa authored
      (font_parse_name): Likewise.
      (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
      them unconditionally.
      (font_matching_entity): New function.
      (font_open_by_name): Try font_matching_entity if exact match is
      not found.
      (font_update_drivers): Delete the arg FONT.  Return a list of
      actually used backends.  Don't free faces, font caches here.
      Don't store data in frame parameters.  Don't call x_set_font.
      (Ffont_spec): Store :name property as is.
      (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
      (Ffont_otf_gsub): Call font->driver->otf_gsub instead of
      font_otf_gsub.
      (Ffont_otf_gpos): Call font->driver->otf_gpos instead of
      font_otf_gpos.
      (Ffont_otf_alternates): Check if the driver has otf_gsub function.
      Call font->driver->otf_gsub instead of font_otf_gsub.
      e950d6f1
  3. 28 Jul, 2006 1 commit
    • Kenichi Handa's avatar
      (font_otf_capability): Fix handling of the default · e80e09b4
      Kenichi Handa authored
      langsys.
      (parse_gsub_gpos_spec): Type changed to void.  New arg nbytes.
      Check the contents of SPEC.
      (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
      (check_gstring): New function.
      (REPLACEMENT_CHARACTER): New macro.
      (font_otf_gsub): New arg alternate_subst.  Be sure to set all
      glyph codes of GSTRING.
      (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
      (font_prepare_composition): Set cmp->glyph_len.
      (font_open_entity): Set font->scalable.
      (Ffont_get): Handle :otf property.
      (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
      functions.
      (Fquery_font): Use font->font.full_name.
      (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
      Sfont_otf_alternates.
      e80e09b4
  4. 26 Jul, 2006 1 commit
  5. 24 Jul, 2006 1 commit
    • Kenichi Handa's avatar
      Include window.h. · 10d16101
      Kenichi Handa authored
      (font_lispy_object): New function.
      (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
      end of valid glyph.
      (font_close_object): Fix getting (struct font *).
      (font_at): New function.
      (Ffont_get): If FONT is a font-object, get entity from it.
      (Ffont_make_gstring): Initialize elements of glyphs with nil.
      (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.  Fix
      range check.
      (Ffont_at): New function.
      (syms_of_font): Defsubr Sfont_at.
      10d16101
  6. 14 Jul, 2006 1 commit
  7. 03 Jul, 2006 1 commit
  8. 28 Jun, 2006 1 commit
    • Kenichi Handa's avatar
      (QCscalable, Qc, Qm, Qp, Qd): New variables. · ec6fe57c
      Kenichi Handa authored
      (syms_of_font): Initialize them.
      (font_pixel_size): Allow float value in dpi.
      (font_prop_validate_type): Deleted.
      (font_prop_validate_symbol, font_prop_validate_style): Argument
      changed.  Caller changed.
      (font_prop_validate_non_neg): Renamed from
      font_prop_validate_size.
      (font_prop_validate_extra): Deleted.
      (font_prop_validate_spacing): New function.
      (font_property_table): Add elements for all known properties.
      (get_font_prop_index): Renamed from check_font_prop_name.  New
      argument FROM.  Caller changed.
      (font_prop_validate): Validate all known properties.
      (font_put_extra): Argument force deleted.  Caller changed.
      (font_expand_wildcards): Make it static.  Fix the way of shrinking
      the possible range.
      (font_parse_xlfd): Arguemnt merge deleted.  Fix handling of RESX,
      RESY, SPACING, and AVGWIDTH.  Don't validate property values here.
      Caller changed.
      (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
      (font_parse_fcname): Arguemnt merge deleted.  Fix parsing of point
      size.  Don't validate properties values here.  Caller changed.
      (font_unparse_fcname): Handle dpi, spacing, and scalable
      properties.
      (font_open_by_name): Delete unused variable.
      (Ffont_spec): Likewise.  Validate property values.
      (Ffont_match_p): New function.
      ec6fe57c
  9. 21 Jun, 2006 1 commit
  10. 19 Jun, 2006 3 commits
    • Kenichi Handa's avatar
      (font_parse_fcname): Fix previous change. · f522f828
      Kenichi Handa authored
      f522f828
    • Kenichi Handa's avatar
      (POINT_TO_PIXEL): Don't divice POINT by 10. · 9331887d
      Kenichi Handa authored
      (QCspacing, QCdpi): New variables.
      (syms_of_font): Initialize them.
      (font_pixel_size): New function.
      (font_put_extra): New function.
      (font_parse_xlfd): Fix handling of font size.  Add QCdpi property
      in FONT_EXTRA.
      (font_parse_fcname): Handle enumenrated values (e.g. bold).  Fix
      handling font size.  Add QCname property that contains only
      unknown properties.
      (font_score): Change argument.  Caller changed.  Pay attention to
      FONT_PIXEL_SIZE_QUANTUM.
      (font_sort_entites): Fix handling of font size.
      (font_list_entities): Likewise.
      (font_find_for_lface): Likewise.
      (font_open_for_lface): Likewise.
      (font_open_by_name): Likewise.
      (Ffont_spec): Add QCname property that contains only unknown
      properties.
      9331887d
    • Kenichi Handa's avatar
      (font_parse_fcname): Fix parsing of point-size. · a9262bb8
      Kenichi Handa authored
      (font_unparse_fcname): Produce symbolic names for style
      properties.
      (font_list_entities): Handle float size correctly.
      (font_open_by_name): Prefer `normal' property values if the name
      doesn't specify them.
      a9262bb8
  11. 16 Jun, 2006 1 commit
    • Kenichi Handa's avatar
      (XLFD_SMALLNUM_MASK): Delete this macro. · ef18374f
      Kenichi Handa authored
      (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
      (font_expand_wildcards): Fix handling ENCODING field.  Avoid
      unnecessary checks for weight, slant, and swidth.
      (font_parse_fcname): New function.
      (font_unparse_fcname): New function.
      (font_parse_name): New function.
      (font_match_p): New function.
      (font_get_name): Return value changed to Lisp string.
      (font_get_spec): New function.
      (Qunspecified, Qignore_defface): Don't extern them.
      (font_find_for_lface): Assume that LFACE is fully specified.
      (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
      object, use it for FACE.
      (font_open_by_name): Call Ffont_spec with QCname prop.  Don't call
      driver->parse_name.
      (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
      ef18374f
  12. 14 Jun, 2006 1 commit
    • Kenichi Handa's avatar
      (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to · 4485a28e
      Kenichi Handa authored
      XLFD_XXX_INDEX.
      (enum xlfd_field_mask): New enum.
      (intern_font_field): Argument changed.  Caller changed.  If digits
      are followed by non-digits, return a symbol.
      (font_expand_wildcards): New function.
      (font_parse_xlfd): Fix wildcard handling.
      (Ffont_spec): If :name is specified, reflect the info in the other
      properties.
      4485a28e
  13. 09 Jun, 2006 2 commits
  14. 07 Jun, 2006 1 commit
  15. 06 Jun, 2006 1 commit