bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#3174: NS: greek glyph rendering incoherent


From: Adrian Robert
Subject: bug#3174: NS: greek glyph rendering incoherent
Date: Sun, 31 May 2009 12:32:45 +0700

I'm including a patch (*) here that redoes the font selection process in nsfont.m and removes some NS-specific code elsewhere. Although it's a big change, I would say it is still under the bug-fix category because it causes the NS port to follow the others in this area, and it works a little better judging by the HELLO screen. However it would be good to have some testing before checking it in.

Thai is much improved.

Greek, however, is still hosed, because emacs font backend core decides these characters should be rendered using script "symbol". I don't know why, since it also knows about "greek", but it might be because many Greek letters are used in both unicode categories.

* Savannah is down now (in fact haven't been able to access for nearly a week), so I'm including the new nsfont.m, fontset.c (just one change to remove NS-specific code in fontset_from_font, and ns- win.el in full, together with ChangeLog.

--------------
        Changes to support :script/:lang/:otf in NS font driver.
        * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
        (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
        indicate not part of font driver interface, and change callers.
        (ns_get_family): Remove pointless null check.
        (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
        ns_spec_to_descriptor, ns_descriptor_to_entity.
        (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
        (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
        (ns_spec_to_descriptor, ns_descriptor_to_entity)
        (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
        (ns_get_req_script, ns_accumulate_script_ranges)
        (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
        New functions.
        (nsfont_list, nsfont_match): Use ns_findfonts.
        (nsfont_open): Use font descriptor instead of traits.
        (nsfont_draw): Handle "automatic" (lookup-table) compositions.
        (dump_glyphstring): Rename to ns_dump_glyphstring.

        * term/ns-win.el (composition-function-table)
        (script-representative-chars): Don't alter.
--------------

Attachment: nsfont_script_20090531.tbz
Description: Binary data




reply via email to

[Prev in Thread] Current Thread [Next in Thread]