📄 news
字号:
==============================================- Extensive pangocairo internal code refactoring and cleanup- New public API: pango_font_face_is_synthesized() pango_cairo_font_get_scaled_font() pango_cairo_font_map_new_for_font_type() pango_cairo_font_map_get_font_type()- New engine macros: PANGO_OT_TAG_MAKE() PANGO_OT_TAG_MAKE_FROM_STRING()- New PangoFontFace method is_synthesized.- Misc bug fixes- Bugs fixed in this release: Bug 337593 – move glyph extents code (and cache) from pangocairo-*font.c into pangocairo-font.c Bug 347235 – Add pango_cairo_font_map_get_font_type Bug 347236 – provide pango_cairo_font_get_scaled_font Bug 353291 – Provide pango_cairo_font_map_new_for_font_type Bug 438801 – underline should add "error" type. Bug 440588 – Add pango_font_face_is_synthesized() Bug 445832 – pango_cairo_update_layout() always invalidates layout Bug 446018 – Bus error in the pango_ot_tag_from_language() Bug 446355 – the parsing with pango_parse_markup is not coherent Bug 447189 – fonts.c: pango_font_face_is_synthesized returns NULL Bug 447568 – improve docs on what absolute size means Bug 448342 – pango_layout_index_to_line_x() counts lines from 1Overview of changes between 1.17.1 and 1.17.2==============================================- Rename recently added pango_ot_ruleset_get_for() to pango_ot_ruleset_get_for_description().- New engine API: pango_ot_ruleset_new_from_description().- Treat Unknown script like Common and other non-"real" scripts. [Martin Hosken]- Misc typo fixes [Peter Moulder]- Bugs fixed in this release: Bug 443206 – PANGO_SCRIPT_UNKNOWN should not cause a run break Patch from Martin HoskenOverview of changes between 1.17.0 and 1.17.1==============================================- Ported the rest of OpenType shapers to the new OpenType APIs and added standard features to them: Hebrew, Indic, Khmer, Thai, and Tibetan.- Added N'Ko support to the Arabic module. [Eugeniy Meshcheryakov]- Small Indic module fix for Malayalam.- Fixed font metrics returned by the ATSUI backend. [Richard Hult]- Make itemization use pango_language_get_default() if context has no language set on it. Ditto for pango_context_get_metrics() if both input language and context language are NULL.- Improved documentation on vertical text, also added stability note to those parts of Pango API that are not indefinitely stable (shaper and language engine APIs).- Misc bug fixes.- New OpenType engine API: pango_ot_ruleset_get_feature_count()- Bugs fixed in this release: Bug 357790 – Rendering problem for malayalam consonant RA (U+0D30) Bug 385168 – indic, khmer, and tibetan modules don't apply ccmp Bug 385477 – kern feature is not supported in OpenType layout for Tibetan. Bug 433805 - [Atsui] Approximate char/digit width width often 0 Bug 436699 – N'Ko support Bug 438705 – Test runs non-existent "/bin/bash" on HP-UX 11.11 Bug 438814 – synaptic crash with pango 1.17.0 Bug 440603 – Minor ABI changeOverview of changes between 1.16.4 and 1.17.0==============================================General:- Text justification. A simple justification algorithm is implemented that tries to justify by expanding spaces in the line, and if none found, by adjust letter spacing. [Based on patch by Mathias Hasselmann]- The pango_script_get_sample_language() function is modified to use the value of environment variables PANGO_LANGUAGE or LANGUAGE (checked in that order) to make guess better languages for scripts. The env var should be a list of language tags, like "en:fa" for example where in effect makes Pango choose Persian (fa) fonts instead of Arabic (ar) fonts when a run of text in the Arabic script is found in an otherwise non-Arabic layout. This trick is also useful for East Asian languages. For example a Japanese user that cannot set her primary language to Japanese can still set PANGO_LANGUAGE="ja" and Pango will map CJK characters to Japanese. The LANGUAGE env var is a standard gettext variable listing languages the user wants to receive UI translated messages in. However, since most packages don't provide separate English translations, setting LANGUAGE="en:ja" doesn't have the intended effect and UI messages will be shown in Japanese. For these situations one can use LANGUAGE="en:C:ja". Pango skips the special language tag 'C'.- Simplified embedded-shape rendering with pangocairo backends do. [Richard Hult]- New header file: Moved PangoLanguage APIs into its own header pango-language.h, which is included from pango-types.h.- ATSUI backend now lists synthesized italic faces like other- Misc optimizations and fixes.OpenType Layout Engine Improvements:- Vertical glyph variants are not selected in vertical text if the font supports them.- Instead of hardcoded OpenType script tag in each module, and using Default Language System unconditionally, Pango will now find and use the script/lang-sys pair that best matches the detected script and language of a run of text. Moreover, it also applies the OpenType 'locl' feature. These, plus the PANGO_LANGUAGE env var, give font designers and users lots of options to provide/choose language-specific glyph variants. Only basic, arabic, and syriac modules updated to take advantage of the new support so far.New pango-view command line options: --align --justify --languagePublic API Changes:- New public pangocairo API: PangoCairoShapeRendererFunc pango_cairo_context_set_shape_renderer() pango_cairo_context_get_shape_renderer() These are used by the default pangocairo renderer to render shape attributes (see examples/cairoshape.c). Cairo-based PangoRenderer implementations outside Pango may want to implement the draw_shape() method similarly to provide compatibility with these new APIs. (See bug #437533 for GdkPangoRenderer for example.)- Other public API changes: New is_expandable_space member in PangoLogAttr New macro PANGO_UNITS_ROUND()- New OpenType engine API. These are engine API, for use by Pango modules, and typically need not to be bound by language bindings: PANGO_OT_NO_FEATURE PANGO_OT_NO_SCRIPT PANGO_OT_TAG_DEFAULT_SCRIPT PANGO_OT_TAG_DEFAULT_LANGUAGE PangoOTFeatureMap PangoOTRulesetDescription pango_ot_ruleset_get_for() pango_ot_ruleset_new_for() pango_ot_ruleset_maybe_add_feature() pango_ot_ruleset_maybe_add_features() pango_ot_ruleset_description_hash() pango_ot_ruleset_description_equal() pango_ot_ruleset_description_copy() pango_ot_ruleset_description_free() pango_ot_tag_from_script() pango_ot_tag_to_script() pango_ot_tag_from_language() pango_ot_tag_to_language()- Bugs fixed in this release: Bug 64538 – pango_layout_set_justify() doesn't work Bug 325714 – Pango should respect $LANGUAGE Bug 414264 – Pango vertical writing support is different with real CJK usage. Bug 416515 – Time is not aligned with date on vertical panel Bug 429397 – Updated MS Mincho/Gothic are not listed in font dialog properly on Vista/ Bug 433805 – [Atsui] Approximate char/digit width width often 0 (worked around) Bug 434160 - [atsui] Italic versions of some faces can't be created Bug 435709 – pango_cairo_context_[sg]et_shape_renderer() Bug 355789 – Pango misaligns word-wrapped text due to trailing whitespace Bug 436154 – Error building the pango.modules file while cross compiling Bug 436988 – Adding PangoScript to PangoAnalysis Bug 437534 – pango_language_includes_script is buggyOverview of changes between 1.16.3 and 1.16.4==============================================- Add new configure option --disable-doc-cross-references and make sure releases are made using it. Distributions are encouraged to build with --enable-gtk-doc such that their Pango docs correctly cross reference glib and cairo docs.- Bugs fixed in this release: Bug 432991 – developer docs for libpango are brokenOverview of changes between 1.16.2 and 1.16.3==============================================- Quantize kerning value if metrics hinting is on. This greatly improves screen text rendering with certain fonts like DejaVu Sans. See: http://behdad.org/blog/mces/image/metricshinting-kerning.png- Improved hex-box positioning in the cairo backendOverview of changes between 1.16.1 and 1.16.2==============================================- Fixed various bug in the OpenType Layout code (HarfBuzz)- Improved documentation- Improved ATSUI backend- Misc build system fixes- Bugs fixed in this release: Bug 417946 – pangowin32-fontmap.c:using function without prototype Bug 419262 - Don't create coverage every time it's asked forOverview of changes between 1.16.0 and 1.16.1==============================================- Improved Win32 backend: The Win32 backend has been updated to always require Uniscribe at compile-time (it still is optional at run-time), and to use the wide-character variants of Windows APIs which improves the backend in many ways. The 1.16.0 release is obsolete as far as the Win32 backend is concerned, and official DLLs were not built for it.- Misc build system fixes- Bugs fixed in this release: Bug 110521 – can't find bold and/or italic fonts on win32 Bug 120195 – there are some functions in pangowin32-fontmap.c that might maybe should be static Bug 407315 – Use wide character Win32 API in the pangowin32 code Bug 412654 – SED variable undefined in the `libtool --config' output used by configure Bug 414297 – Fails to build with --enable-static --with-included-modules in thai lang module Patch from Loïc MinierOverview of changes between 1.15.6 and 1.16.0==============================================- Improved docs, with an object hierarchy and cross references to glib and cairo docs now (may require rebuilding the docs to correctly detect glib and cairo prefixes).- Improved font selection for space characters- Misc build system fixes- Bugs fixed in this release: Bug 407087 – autogen.sh wants automake-1.7 Bug 409212 – Missing link flag prevents build with "-z defs" ld flags Patch from Loïc Minier Bug 355987 – choosing font/shaper for spaces breaks Arabic runs on spacesOverview of changes between 1.15.5 and 1.15.6==============================================- Fix possible crasher in win32 font selection [Owen Taylor]- Misc build fixes.- Bugs fixed in this release: Bug 399738 – pango 1.15.5 won't compile on Mac OS X: 'FC_HINT_STYLE' undeclared (first use in this function) Bug 404295 – Crash initializing pango-win32 fontmapOverview of changes between 1.15.4 and 1.15.5==============================================- Fix the "menu accels are two chars wide" bug that was introduced in 1.15.4- Respect FC_HINT_STYLE in the ft2 backend. Patch has been in Fedora for ages.- Require automake 1.9Bugs fixed in this release: Bug 398238 – pangorc file missing from tests directoryOverview of changes between 1.15.3 and 1.15.4==============================================General:- Finish vertical text support.- Fix various bugs that could cause ellipsization to stop prematurely.- Fix rendering of background color being off in presence of rise attribute.- Improved text-on-path example (examples/cairotwisted.c)Win32 Improvements:- Don't check for X and don't warn about missing fontconfig. [Tor Lillqvist]- Automatically use -mms-bitfields on Windows when building with gcc. [Tor]- Update makefile.msv. [Hans Breuer]Code base cleanups:- Whitespace cleanups. Hopefully patches still apply using patch -l- Replace C++-style // comments with C-style /* */ ones.- Move the pango-view tool from examples/ into pango-view/. The examples/ dir is still available and for simple examples only.Public API changes:- New PangoLayout query functions: pango_layout_is_wrapped() pango_layout_is_ellipsized() pango_layout_get_unknown_glyphs_count()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -