| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fri Aug 16 17:49:38 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangofc-fontmap.cI pango/pangoxft-fontmap.c
pango/pangoft2-fontmap.c pango/pangoxft-private.h
pango/pangoft2-private.h pango/pangoxft-font.c
pango/pangoft2.h: Move the common code between PangoXftFontmap
and PangoFT2Fontmap into a new file that is included from both
with appropriate #defines. This provides most of the
recent Xft backend improvements for the FT2 backend
as well.
|
|
|
|
|
|
|
|
|
|
|
| |
Wed Jul 3 18:39:45 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangoft2.c pango/pangoxft-font.c: Be more
robust when trying to set the unicode character
map on the font.
* pango/pangoft2.c pango/pangoft2-private.h:
Obey FC_HINTING, FC_AUTOHINT.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mon Jul 1 19:45:10 2002 Owen Taylor <otaylor@redhat.com>
* pango/pangoxft-fontmap.c (pango_xft_set_default_substitute):
New function to allow tweaking of FcPattern default
substitution (for XSETTINGS support.)
* pango/pangoft2-fontmap.c pango/pangoft2.[ch]
pango/pangoft2-private.h: Rationalize DPI and
context creation by adding:
pango_ft2_font_map_new()
pango_ft2_font_map_set_resolution()
pango_ft2_font_map_set_default_substitute()
pango_ft2_font_map_create_context()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Xft2 and fontconfig conversion, based largely on a patch
from Keith Packard.
* configure.in acconfig.h: Add checks for fontconfig, switch
Xft checks to switch for Xft2 using pkg-config.
* pangoxft.pc.in pangoxft.pc.in
modules/{arabic,basic,hebrew,indic,tamil}/Makefile.am
pango/Makefile.am: Reflect new Xft/fontconfig dependencies.
* pango/pangoxft-private.h pango/pangoxft-fontmap.c
modules/arabic/arabic-xft.c modules/indic/indic-xft.c:
Switch over to using Xft2 and fontconfig.
* pango/pangoft2.c pango/pangoft2-fontmap.c pango/pangoft2-private.h
pango/pango/Makefile.am: Remove usage of mini-xft in
favor of fontconfig.
* pango/pango-ot.h pango/opentype/pango-ot-info.c pango/pangoxft.h
modules/arabic/arabic-{xft,ft2}.c modules/indic/indic-xft.c:
Attach OpenType information directly to the FT_Face
structure using FT_Generic.
* modules/tamil/Makefile.am modules/tamil/tamil-xft.c
configure.in: Remove this module, no longer needed.
* pango/pangoxft-font.c (pango_xft_real_render): Coalesce
calls to Xft rendering functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-03-26 Sven Neumann <sven@gimp.org>
* pango/pangoft2-private.h
* pango/pangoft2.c (pango_ft2_font_get_metrics): calculate
average_char_width and average_digit_width by measuring sample layouts
and cache font metrics per language just like PangoX does, #53425.
* pango/pangoxft-font.c
* pango/pangoxft-private.h: the same approach for average_char_width
and average_digit_width as in PangoFT2, #53425.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002-01-18 Alexander Larsson <alla@lysator.liu.se>
* pango/pangoft2-private.h:
Add glyph_cache_destroy to PangoFont. This is slightly ugly, we
should perhaps have it in the FontMap, but it was easy.
Added cached_glyph to PangoFT2GlyphInfo. This can be used by
apps that want to have a glyph cache. Only one user per PangoContext
though. Right now it is only internally accessible.
Added pango_ft2_font_get_cache_glyph_data(), pango_ft2_font_set_cache_glyph_data() and
pango_ft2_font_set_glyph_cache_destroy() to access this functionallity
* pango/pangoft2.c:
Implement glyph caching for pango_ft2_render_layout(). Unbounded
caching right now. We should probably limit this in order to not
use a lot of memory if the user displayed a lot of glyphs once,
and then doesn't use them anymore.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-11-27 Alex Larsson <alexl@redhat.com>
* pango/pangoft2-private.h
* pango/pangoft2-fontmap.c (_pango_ft2_font_desc_from_pattern):
Take extra parameter include_size that determines if the
descriptor includes the size.
* pango/pangoft2.c (_pango_ft2_font_new):
Include size in ft2font->description.
* pango/pangoxft-private.h
* pango/pangoxft-fontmap.c (_pango_xft_font_desc_from_pattern):
Take extra parameter include_size that determines if the
descriptor includes the size.
* pango/pangoxft-font.c:
Include size in xfont->description.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2001-11-17 Alexander Larsson <alla@lysator.liu.se>
* configure.in:
Check for LEX and YACC. This will be made optional later,
with the build sources checked in to cvs.
Generate pango/mini-xft/Makefile
* modules/basic/basic-ft2.c:
Use the new pangoft2 API.
* pango/Makefile.am:
Build mini-xft.
Add new files.
* pango/pango-context.[ch]:
Support only one fontmap per context.
Use pango_font_map_load_fontset() and PangoFontset instead
of internal fontset.
* pango/pango-fontmap.[ch]:
New virtual function pango_font_map_load_fontset() and
default implementation that uses pango_font_map_load_font().
* pango/pango-utils.[ch] (pango_lookup_aliases):
Utility function for looking up aliases. This can be
used by backend that has no backend specific aliases.
* pango/pangoft2-fontcache.c:
Removed file.
* pango/pangoft2-fontmap.c:
* pango/pangoft2-private.h:
* pango/pangoft2.c:
* pango/pangoft2.h:
Major rewrite. Doesn't handle fontsets. Uses mini-xft so that
it will always match the PangoXft backend. Simplified the
public API.
* pango/pangowin32.c:
* pango/pangox.c:
pango_context_add_font_map -> pango_context_set_font_map
* pango/pangoxft-font.c:
* pango/pangoxft-fontmap.c:
* pango/pangoxft-private.h:
New code to handle fontsets.
* pango/mini-xft/*:
Mini version of libXft from XFree86 in order to have
the pangoFT2 and pangXft backends have same config files and
generate the same fonts.
|
|
|
|
|
|
|
|
|
|
| |
Tue Sep 18 17:29:20 2001 Owen Taylor <otaylor@redhat.com>
* pango/pangoft2-fontmap.c pango/pangoft2-private.h: Include
parent_instance structures.
* pango/fonts.c (pango_font_family_get_type): Pass in right
class structure.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tue Sep 18 15:47:08 2001 Owen Taylor <otaylor@redhat.com>
* configure.in (PANGO_MINOR_VERSION): Up to 0.19.
* pango/pango-font.h pango/pango-fontmap.[ch] pango/fonts.c
pango/pangoxft-fontmap.c pango/pangoft-fontmap.c pango/pango-context.[ch]
pango/pangox-fontmap.c: Add new PangoFontFace and PangoFontFamily
object types, and change the font listing API to list faces and
families, instead of face names and font descriptions.
* pango/pango-font.h pango/fonts.c: Make PangoFontDescription
an opaque heap-allocated structure, add accessors and
convenience functions.
* pango/pango-font.h pango/pango-private.h: Make PangoFontMetrics
heap allocated, protect the structure definition with
#ifdef PANGO_ENABLE_BACKEND, and add getters for the fields.
* pango/pango-attributes.[ch] ( pango_attr_iterator_get_font):
instead of providing a base font description and one to fill
in, provide a single font description to modify based on
the attributes.
* pango/pango-attributes.[ch]: Fix PangoAttrFontDesc to have
a PangoFontDescription by reference, not by value.
* pango/pango-utils.[ch]: make pango_parse_style() and friends
take pointers to individual enumerations instead of to a
PangoFontDescription structure.
* pango/*.c: Fix for the PangoFontDescription and PangoFontMetrics
changes.
* pango/pango-{break,engine,indic,ot,xft}.h pango/Makefile.am
pango/opentype/Makefile.am: Protect portions with
PANGO_ENABLE_ENGINE to shrink the public API.
* modules/*/Makefile.am: -DPANGO_ENABLE_ENGINE.
* pango/{pangox.h,pangox-private.h} modules/basic/basic-x.c: Move
pango_x_font_get_unknown_glyph() into public header since it is
used from modules.
* pango/pango-{context,font,fontmap,modules.utils}.h pango/Makefile.am:
Protect portions with PANGO_ENABLE_BACKEND to shrink the public API.
* pango/*.h: Use G_BEGIN/END_DECLS
* examples/viewer-qt.[cc,h]: Fix for changes to font listing API,
PangoFontDescription.
* pango/pango-indic.h modules/indic/*: Since we install this
header fix it up to Pango conventions, namespece
ZERO_WIDTH_JOINER, ZERO_WIDTH_NON_JOINER.
* docs/pango-sections.txt: Updated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Sat Jun 9 17:36:09 2001 Owen Taylor <otaylor@redhat.com>
* pango/pango-types.h pango/pango-utils.c: Add a new PangoLanguage
type to represent language tags; these can efficiently be compared
and don't need to be copied. Also add pango_language_matches()
to match a language tag against a pattern.
* pango/pango-item.[ch] pango/pango-layout.c: Move extra_attrs
from PangoItem to PangoAnalysis. Add a language tag field to
PangoAnalysis. (#55894)
* pango/pango-attributes.[ch] (pango_attr_iterator_get_font): Return
the language tag as well.
* pango/pango-attributes.[ch]: Rename PangoAttrLang to PangoAttrLanguage,
and make it hold a PangoLanguage.
* pango/pango-context.[ch]: Rename pango_context_{get,set}_lang() to
pango_context_{get,set}_language().
* **.[ch]: Adapt to PangoLanguage and s/lang/language/ changes.
* modules/basic/basic-x.c modules/basic/tables-big.i: Add support
for ordering character sets differently for different language
tags.
* pango/itemize.c: Remove old, unused file.
* pango/pango-context.c (pango_itemize): Reduce number of mallocs
by allocating one array of PangoAnalysis instead of many arrays.
|
|
|
|
|
|
|
| |
2000-12-22 Alexander Larsson <alla@lysator.liu.se>
* pango/pangoft2-private.h:
Disable debug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-12-21 Alexander Larsson <alexl@redhat.com>
* pango-config.in:
Change usage to say pango-config instead of glib-config.
Add support for pangoft2.
* modules/basic/Makefile.am:
Compile and install pango-basic-ft2 if freetype was found.
* modules/basic/basic-ft2.c:
Remove lang engine. Make the glyph from the glyph index instead
of the unicode index. The id is really BasicScriptEngineFT2.
* pango/Makefile.am:
Compile and install pangoft2 if freetype was found.
* pango/pangoft2-fontcache.c (pango_ft2_font_cache_load):
Init face->generic.data to 0, since this field will be used
to cache the current size of the face.
* pango/pangoft2-fontmap.c (pango_ft2_font_map_for_display):
Use g_object_new instead of g_type_create_instance.
(pango_ft2_font_entry_get_coverage): Use G_DIR_SEPARATOR_S
instead of \\. (pango_ft2_font_entry_get_coverage): Init result
to NULL. Don't write to file if open failed.
* pango/pangoft2-private.h:
Add PangoFT2GlyphInfo.
* pango/pangoft2.c (pango_ft2_get_face): Export function, and make
sure it sets the correct face size. (pango_ft2_load_font,
pango_ft2_get_per_char, pango_ft2_font_get_kerning):
PANGO_FT2_GLYPH_INDEX stores the glyph index, not the unicode value.
(pango_ft2_font_get_glyph_extents): Cache glyph extents.
(pango_ft2_has_glyph): Remove function.
(pango_ft2_font_finalize): Free glyph info cache.
* pango/pangoft2.h:
Export pango_ft2_get_face, remove pango_ft2_has_glyph.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-11-19 Tor Lillqvist <tml@iki.fi>
* README.win32: New file.
* pango/fonts.c (pango_font_description_to_filename): New
function. As pango_font_description_to_string, but with result
that is better suitable as a filename: No spaces or other strange
characters, all in lowercase.
(pango_font_describe): Implement this function, call the
corresponding method.
* pango/pango-font.h: Declare pango_font_description_to_filename.
* pango/pangowin32.c (pango_win32_font_describe)
* pango/pangoft2.c (pango_ft2_font_describe): Implement these.
* pango/pangoft2-fontmap.c (pango_ft2_font_entry_get_coverage)
* pango/pangowin32-fontmap.c (pango_win32_font_entry_get_coverage):
Implement file-based persistent caching of coverages.
* pango/pangoft2-private.h (struct _PangoFT2FontEntry)
* pango/pangowin32-private.h (struct _PangoWin32FontEntry): Move
struct definition here from the -fontmap files.
* pango/pango.def: Updates.
|
|
|
|
|
|
|
|
|
|
| |
2000-11-15 Tor Lillqvist <tml@iki.fi>
* config.h.win32: Define HAVE_FRIBIDI.
* pango/pango.def: Add new functions.
* pango/pango{win32*,ft2*}.[ch]: Add my name to copyright notice.
|
|
|
|
|
|
|
|
|
|
|
| |
2000-11-11 Tor Lillqvist <tml@iki.fi>
* pango/pangowin32.c (pango_win32_render): Add code to call
SetTextAlign, but commented out.
* pango/makefile.mingw.in (PANGO_OBJS): Add new objects.
* pango/pango.def: Add new functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-08-21 Tor Lillqvist <tml@iki.fi>
* pango/pangoft2-fontmap.c: Get font directory path with
pango_config_key_get("PangoFT2/FontPath"). If no such key exists
in the pangorc file, use the ft2fonts subdirectory of
LIBDIR/pango, and on Windows, also %WinDir%\fonts.
* pango/{pango,pangoft2,pangowin32}.rc.in: New files (resource
files used when building Win32 DLLs, contain version information).
* pango/Makefile.am: Add the new files.
* configure.in: Define major and minor version numbers separately.
Output also the makefile.mingw and *.rc files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2000-08-21 Tor Lillqvist <tml@iki.fi>
* pango/pangoft2.c (pango_ft2_render): Handle also ft_pixel_mode_mono
glyphs.
* pango/pangoft2*: Portability enhancements (non-gcc).
* examples/viewer-{ft2,win32}.c: One more 1000 vs. PANGO_SCALE fix.
* pango/module-defs.c.win32: New file.
* pango/Makefile.am: Distribute it.
|
|
2000-08-20 Tor Lillqvist <tml@iki.fi>
* pango/pango-utils.c (pango_parse_*): Add parameter telling
whether to print warning or not if string isn't recognised. Use
g_strncasecmp().
* pango/pango-utils.h: Change prototype accordingly.
* pango/pangox-fontmap.c
* pango/pangowin32-fontmap.c: Change calls correspondingly.
* pango/pangowin32.h:
* pango/pangowin32.c: Cosmetic changes, dead code removal.
* pango/pangoft2.h
* pango/pangoft2-private.h
* pango/pangoft2.c
* pango/pangoft2-fontmap.c
* pango/pangoft2-fontcache.c: New files implementing a FreeType2
backend. Used only on Win32 so far, but doesn't contain
Win32-specific code per se, so if somebody wants to try it out on
X11, too, be my guest.
It works, more or less, but there are some details still to sort
out. Performance needs to be improved. Debugging printouts still
present. Font path currently hardcoded to C:\windows\fonts, heh.
Owen says he doesn't think it's a good idea to use ths on Win32,
but I'll try anyway. If it turns out using the native Win32 GDI
backend is better after all, oh well.
* pango/makefile.mingw: Delete. Move contents to
makefile.mingw.in.
* pango/makefile.mingw.in: New file. Add rules for
FreeType2 backend. Add FreeType2 CFLAGS and LIBS.
* pango/Makefile.am: Generate makefile.mingw.
(EXTRA_DIST): Add FreeType2 backend sources, and
makefile.mingw{,.in}
* modules/basic/basic-win32.c: Couple of cosmetic changes.
* modules/basic/Makefile.am: Generate makefile.mingw.
(EXTRA_DIST): Add basic-ft2.c, and makefile.mingw{,.in}
* modules/basic/makefile.mingw: Delete. Move contents to
makefile.mingw.in.
* modules/basic/makefile.mingw.in: New file. Add rule for
basic-ft2. Add FreeType2 CFLAGS and LIBS.
* examples/viewer-win32.c (read_file): Fix error messages.
(draw): Get HDC from GDK once for all paragraphs.
* examples/viewer-ft2.c: New file. The FT_Bitmap (256-level
bitmap) produced by the FreeType2 backend is copied to the
GtkLayout window using gdk_draw_gray_image from GdkRGB (!). Yes,
this is kinda circular dependency between Pango and GTK+.
* examples/makefile.mingw: Delete. Move contents to
makefile.mingw.in.
* examples/makefile.mingw.in: New file. Add rules for
viewer-ft2. Add FreeType2 CFLAGS and LIBS.
* examples/Makefile.am: Generate makefile.mingw.
(EXTRA_DIST): Add viewer-win32.c and viewer-ft2.c, and
makefile.mingw{,.in}
|