handa [Tue, 6 Nov 2007 04:44:29 +0000 (04:44 +0000)]
(ft_open): Keep rfont's metrics in 26.6 fixed pixels.
(ft_find_metric): Adjust glyph's metrics.
(ft_encapsulate): Keep rfont's metrics in 26.6 fixed pixels.
(ft_drive_otf): Set mark glyph's xadv to 0.
handa [Tue, 6 Nov 2007 04:42:10 +0000 (04:42 +0000)]
(mface__for_chars): Adjusts the unit of face's ascent and
descent.
handa [Mon, 29 Oct 2007 02:33:33 +0000 (02:33 +0000)]
*** empty log message ***
handa [Mon, 29 Oct 2007 02:33:25 +0000 (02:33 +0000)]
(Mgenerator, Mend): New variables.
(flt_min_coverage, flt_max_coverage): New variables.
(GCPY): New macro.
(GDUP): Use it.
(Mfont_has): Renamed from Mexist. Referrers chagned.
(gen_otf_tag): Handle the trailing whitespaces.
(otf_count_features, otf_store_features): Fix for negative features.
(parse_otf_command): Adjusted for the change of MFLTOtfSpec.
(load_otf_command): Likewise.
(free_flt_command): Adjusted for the change of MFLTOtfSpec.
(load_flt): Argument changed. Caller changed.
(free_flt_list): New function.
(run_rule): Adjusted for the change of FontLayoutContext.
(mflt_run): Adjusted for the change of FontLayoutContext.
handa [Mon, 29 Oct 2007 02:29:30 +0000 (02:29 +0000)]
* m17n-flt.h (struct _MFLTOtfSpec): Adjusted for the new FLT handling.
(mflt_get): Adjusted for the argument change.
(mflt_name): Adjusted for the return value change.
handa [Mon, 29 Oct 2007 02:23:03 +0000 (02:23 +0000)]
(m17n_init_win): Call m17n_init_flt.
(m17n_fini_win): Call m17n_fini_flt.
handa [Mon, 29 Oct 2007 02:21:57 +0000 (02:21 +0000)]
* m17n-gui.h: Include m17n-flt.h.
* input.c: Include "m17n.h" instead of "m17n-gui.h".
handa [Mon, 29 Oct 2007 02:21:38 +0000 (02:21 +0000)]
Adusted for the change of MGlyph.
handa [Mon, 29 Oct 2007 02:21:14 +0000 (02:21 +0000)]
Adusted for the change of MGlyph.
(xft_check_otf, xft_drive_otf): New functions.
handa [Mon, 29 Oct 2007 02:20:21 +0000 (02:20 +0000)]
(MGlyph): Modified for new FLT handling.
handa [Mon, 29 Oct 2007 02:19:37 +0000 (02:19 +0000)]
(try_font_list): Adusted for the change of MGlyph.
handa [Mon, 29 Oct 2007 02:18:48 +0000 (02:18 +0000)]
Adjusted for the change of MGlyph.
(ft_check_cap_otf): Renamed from ft_check_otf. Callers changed.
(get_glyph_metric): Deleted.
(ft_check_otf): New function.
(ft_drive_otf): New fucntion.
handa [Mon, 29 Oct 2007 02:15:55 +0000 (02:15 +0000)]
Adjusted for the change of MGlyph.
(mfont__init): Don't call mfont__flt_init.
(mfont__fini): Don't call mfont__flt_fini.
(mfont__get_glyph_id, mfont__get_metrics): New functions.
handa [Mon, 29 Oct 2007 02:15:06 +0000 (02:15 +0000)]
(struct MRealizedFont): New members x_ppem and y_ppem.
(MFLTFontForRealized): New struct.
(struct MFontDriver): New members check_otf and drive_otf.
(mfont__get_glyph_id, mfont__get_metrics): Extern them.
handa [Mon, 29 Oct 2007 02:14:10 +0000 (02:14 +0000)]
Adjusted for the change of MGlyph.
handa [Mon, 29 Oct 2007 02:12:29 +0000 (02:12 +0000)]
(m17n_init): Don't call mchar_init.
handa [Mon, 29 Oct 2007 02:12:05 +0000 (02:12 +0000)]
(m17n_init_core): Call mchar_init.
handa [Mon, 29 Oct 2007 02:11:43 +0000 (02:11 +0000)]
(mchartable_min_char, mchartable_max_char): Extern them.
handa [Mon, 29 Oct 2007 02:11:02 +0000 (02:11 +0000)]
Include "m17n.h" instead of "m17n-gui.h".
handa [Mon, 29 Oct 2007 02:10:23 +0000 (02:10 +0000)]
(mchartable): Initialize table->min_char to -1.
(mchartable_min_char): New function.
(mchartable_max_char): New function.
handa [Mon, 29 Oct 2007 02:09:29 +0000 (02:09 +0000)]
(GUI_SOURCES): Delete font-flt.c.
(libm17n_gui_la_LIBADD): Add ${top_builddir}/src/libm17n-flt.la.
handa [Mon, 29 Oct 2007 02:08:32 +0000 (02:08 +0000)]
*** empty log message ***
handa [Mon, 29 Oct 2007 02:08:28 +0000 (02:08 +0000)]
(xgstring): Adjusted for the change of dump_gstring.
(xgtr): New command.
handa [Mon, 29 Oct 2007 02:08:22 +0000 (02:08 +0000)]
(common_ldflags_gui): Add
${top_builddir}/src/libm17n-flt.la.
handa [Fri, 12 Oct 2007 05:46:20 +0000 (05:46 +0000)]
*** empty log message ***
handa [Fri, 12 Oct 2007 05:46:15 +0000 (05:46 +0000)]
* m17n-core.h (Mcharset): Extern it.
Move detabase related declarations from m17n.h.
* m17n-flt.h: Include m17n-core.h instead of m17n.h.
(struct _MFLTOtfFeatures): New struct.
(struct _MFLTOtfSpec): Delete gsub, gpos, etc, add gsub_gpos.
(struct _MFLTFont): Delete otf, add check_otf.
(MCHAR_INVALID_CODE): Define it.
* m17n.h: Move database related declarations to m17n-core.h
(Mharset): Don't extern it.
* m17n-flt.c: Include m17n-core.h instead of m17n.h.
(Mexist): New variable.
(enum FontLayoutCmdRuleSrcType): New enum SRC_EXIST.
(FontLayoutCmdRule): New member src.exist.
(parse_otf_command): Handle gsub_count and gpos_count separately.
(load_otf_command): Adjusted for the change of MFLTOtfSpec.
(load_command): Handle the command "exist".
(free_flt_command): Adjusted for the change of MFLTOtfSpec.
(run_rule): Handle the case SRC_EXIST.
(run_otf): Adjusted for the change of MFLTOtfSpec.
(run_command): Check the range of FROM.
(check_otf_spec): Delete it.
(m17n_init_flt): Call m17n_init_core instead of m17n_init.
Initialize Mexist.
(m17n_fini_flt): Call m17n_fini_core instead of m17n_fiini.
(mflt_find): Call font->check_otf instead of check_otf_spec.
(mflt_run): Keep the metrics in 26.6 fixed point.
* database.c: Include m17n-core.h instead of m17n.h.
(load_chartable): Use mtext__from_data.
(load_charset): Moved to charset.c
(load_database): Call mdatabase__load_charset_func instead of
load_charset.
(mdatabase__load_charset_func): New variable.
(mdatabase__init): Initialize mdatabase__load_charset_func and
Mcharset. Don't set mdatabase__finder and mdatabase__loader.
(mdatabase__save): Use fwrite, not mconv_encode_stream.
(Mcharset): Declare it here.
handa [Fri, 12 Oct 2007 05:45:31 +0000 (05:45 +0000)]
Include m17n-core.h instead of m17n.h.
(struct _MFLTOtfFeatures): New struct.
(struct _MFLTOtfSpec): Delete gsub, gpos, etc, add gsub_gpos.
(struct _MFLTFont): Delete otf, add check_otf.
(MCHAR_INVALID_CODE): Define it.
handa [Fri, 12 Oct 2007 05:43:43 +0000 (05:43 +0000)]
*** empty log message ***
handa [Fri, 12 Oct 2007 05:43:39 +0000 (05:43 +0000)]
(read_mtext_element): Simplify the code.
handa [Fri, 12 Oct 2007 05:42:45 +0000 (05:42 +0000)]
* m17n.h: Move database related declarations to m17n-core.h
(Mharset): Don't extern it.
* m17n-flt.c: Include m17n-core.h instead of m17n.h.
(Mexist): New variable.
(enum FontLayoutCmdRuleSrcType): New enum SRC_EXIST.
(FontLayoutCmdRule): New member src.exist.
(parse_otf_command): Handle gsub_count and gpos_count separately.
(load_otf_command): Adjusted for the change of MFLTOtfSpec.
(load_command): Handle the command "exist".
(free_flt_command): Adjusted for the change of MFLTOtfSpec.
(run_rule): Handle the case SRC_EXIST.
(run_otf): Adjusted for the change of MFLTOtfSpec.
(run_command): Check the range of FROM.
(check_otf_spec): Delete it.
(m17n_init_flt): Call m17n_init_core instead of m17n_init.
Initialize Mexist.
(m17n_fini_flt): Call m17n_fini_core instead of m17n_fiini.
(mflt_find): Call font->check_otf instead of check_otf_spec.
(mflt_run): Keep the metrics in 26.6 fixed point.
* database.c: Include m17n-core.h instead of m17n.h.
(load_chartable): Use mtext__from_data.
(load_charset): Moved to charset.c
(load_database): Call mdatabase__load_charset_func instead of
load_charset.
(mdatabase__load_charset_func): New variable.
(mdatabase__init): Initialize mdatabase__load_charset_func and
Mcharset. Don't set mdatabase__finder and mdatabase__loader.
(mdatabase__save): Use fwrite, not mconv_encode_stream.
(Mcharset): Declare it here.
handa [Fri, 12 Oct 2007 05:41:47 +0000 (05:41 +0000)]
(m17n_init): Don't call mdatabase__init.
handa [Fri, 12 Oct 2007 05:41:03 +0000 (05:41 +0000)]
(read_rgb_txt): Check also /etc/X11/rgb.txt. Downcase
color names.
handa [Fri, 12 Oct 2007 05:40:00 +0000 (05:40 +0000)]
Include m17n-core.h instead of m17n.h.
(Mexist): New variable.
(enum FontLayoutCmdRuleSrcType): New enum SRC_EXIST.
(FontLayoutCmdRule): New member src.exist.
(parse_otf_command): Handle gsub_count and gpos_count separately.
(load_otf_command): Adjusted for the change of MFLTOtfSpec.
(load_command): Handle the command "exist".
(free_flt_command): Adjusted for the change of MFLTOtfSpec.
(run_rule): Handle the case SRC_EXIST.
(run_otf): Adjusted for the change of MFLTOtfSpec.
(run_command): Check the range of FROM.
(check_otf_spec): Delete it.
(m17n_init_flt): Call m17n_init_core instead of m17n_init.
Initialize Mexist.
(m17n_fini_flt): Call m17n_fini_core instead of m17n_fiini.
(mflt_find): Call font->check_otf instead of check_otf_spec.
(mflt_run): Keep the metrics in 26.6 fixed point.
handa [Fri, 12 Oct 2007 05:34:39 +0000 (05:34 +0000)]
(mdatabase__finder, mdatabase__loader): Delete them.
(m17n_init_core): Call mdatabase__init.
handa [Fri, 12 Oct 2007 05:33:36 +0000 (05:33 +0000)]
(device_open): Use mplist_add, not mplist_push.
handa [Fri, 12 Oct 2007 05:32:43 +0000 (05:32 +0000)]
(mdatabase__finder, mdatabase__loader): Delete externs
of them.
handa [Fri, 12 Oct 2007 05:31:51 +0000 (05:31 +0000)]
(Mexist): New variable.
(enum FontLayoutCmdRuleSrcType): New enum SRC_EXIST.
(FontLayoutCmdRule): New member src.exist.
(load_category_table): Use isalnum, not isalpha.
(load_command): Check the command "exist".
(run_rule): Hande the case SRC_EXIST.
(run_command): Check the range of FROM.
(mfont__flt_init): Initialize Mexist.
handa [Fri, 12 Oct 2007 05:28:53 +0000 (05:28 +0000)]
(layout_glyphs): Fix calculation of off_x and off_y.
handa [Fri, 12 Oct 2007 05:17:14 +0000 (05:17 +0000)]
(mdatabase__load_charset_func): Extern it.
handa [Fri, 12 Oct 2007 05:14:21 +0000 (05:14 +0000)]
* database.c: Include m17n-core.h instead of m17n.h.
(load_chartable): Use mtext__from_data.
(load_charset): Moved to charset.c
(load_database): Call mdatabase__load_charset_func instead of
load_charset.
(mdatabase__load_charset_func): New variable.
(mdatabase__init): Initialize mdatabase__load_charset_func and
Mcharset. Don't set mdatabase__finder and mdatabase__loader.
(mdatabase__save): Use fwrite, not mconv_encode_stream.
(Mcharset): Declare it here.
handa [Fri, 12 Oct 2007 04:55:05 +0000 (04:55 +0000)]
Include "database.h.".
(load_charset): Moved from database.c.
(mcharset__init): Initialize mdatabase__load_charset_func, don't
initialize Mcharset.
handa [Fri, 12 Oct 2007 04:52:25 +0000 (04:52 +0000)]
(mchar_define_property): Call mdatabase_find directly.
(mchar_get_prop): Call mdatabase_add directly.
(mchar_put_prop): Call mdatabase_load directly.
(mchar_get_prop_table): Likewise.
handa [Fri, 12 Oct 2007 04:50:47 +0000 (04:50 +0000)]
(libm17n_core_la_SOURCES): Add database.[ch].
(libm17n_la_SOURCES): Remove database.[ch].
(libm17n_flt_la_LIBADD): Delete libm17n.la, add libm17n-core.la.
handa [Fri, 12 Oct 2007 04:49:25 +0000 (04:49 +0000)]
*** empty log message ***
handa [Fri, 12 Oct 2007 04:48:50 +0000 (04:48 +0000)]
Don't require m17n-shell.
handa [Tue, 18 Sep 2007 06:36:30 +0000 (06:36 +0000)]
*** empty log message ***
handa [Tue, 18 Sep 2007 06:36:27 +0000 (06:36 +0000)]
(mface__realize): Try Freetype based font at first.
handa [Tue, 18 Sep 2007 00:10:30 +0000 (00:10 +0000)]
*** empty log message ***
handa [Tue, 18 Sep 2007 00:09:52 +0000 (00:09 +0000)]
(main): Use "generic" fontset by default.
handa [Sun, 16 Sep 2007 10:59:54 +0000 (10:59 +0000)]
*** empty log message ***
handa [Sun, 16 Sep 2007 10:59:49 +0000 (10:59 +0000)]
(load_flt): New arg full. If full is zero, load only
coverage.
(run_otf): Call font->get_metrics, not font->get_metric.
(run_stages): Likewise.
(CHECK_FLT_COVERAGE): New macro.
(CHECK_FLT_STAGES): Call load_flt with the second arg 1.
(check_otf_spec): New function.
(m17n_fini_flt): Unref flt->coverage.
(mflt_find): Argument changed.
(mflt_name): New function.
(mflt_coverage): Use CHECK_FLT_COVERAGE.
handa [Sun, 16 Sep 2007 10:42:35 +0000 (10:42 +0000)]
(mflt_find): Prototype adjusted.
(mflt_name): Extern it.
handa [Fri, 14 Sep 2007 05:05:55 +0000 (05:05 +0000)]
*** empty log message ***
handa [Fri, 14 Sep 2007 05:05:51 +0000 (05:05 +0000)]
(struct _MFLTGlyph): Change signedness of members.
handa [Fri, 14 Sep 2007 05:02:54 +0000 (05:02 +0000)]
*** empty log message ***
handa [Fri, 14 Sep 2007 05:02:41 +0000 (05:02 +0000)]
(run_otf): Make debug info printing comaptible with
that of m17n-flt.c.
(run_command): Likewise.
(mfont__flt_run): Likewise.
handa [Fri, 14 Sep 2007 05:01:34 +0000 (05:01 +0000)]
(UPDATE_CLUSTER_RANGE): ctx->cluster_begin_idx is
invalid only when it's negative.
(run_otf): Likewise.
(run_command): Likewise.
(mflt_run): Initialize ctx.cluster_begin_idx to -1.
handa [Mon, 10 Sep 2007 05:12:42 +0000 (05:12 +0000)]
*** empty log message ***
handa [Mon, 10 Sep 2007 04:50:34 +0000 (04:50 +0000)]
*** empty log message ***
handa [Mon, 10 Sep 2007 04:50:26 +0000 (04:50 +0000)]
(struct _MFLTGlyph): New member encoded and measured.
(struct _MFLTFont): Prototype of get_glyph_id changed.
handa [Mon, 10 Sep 2007 04:49:47 +0000 (04:49 +0000)]
(enum GlyphInfoMask): Delete EncodedMask and
PositionedMask.
(GAPPEND): Delete this macro.
(GET_ENCODED, SET_ENCODED, GET_MEASURED, SET_MEASURED): Adjusted
for the change of MFLTGlyph. Caller changed.
(run_otf): Simply calls font->get_glyph_id.
(run_command): Reset g->encoded and g->measured for direct code.
(positioning): Delete this function.
(run_stages): Simply calls font->get_glyph_id and font->get_metric.
handa [Fri, 7 Sep 2007 08:03:19 +0000 (08:03 +0000)]
(compose_glyph_string): Improve script detection.
handa [Thu, 6 Sep 2007 04:04:32 +0000 (04:04 +0000)]
*** empty log message ***
handa [Thu, 6 Sep 2007 04:04:28 +0000 (04:04 +0000)]
(mflt_get): Extern it.
handa [Thu, 6 Sep 2007 04:04:09 +0000 (04:04 +0000)]
(run_stages): Call positioning only if
font->get_metric is non-NULL.
(CHECK_FLT_STAGES): Fix typo.
(mflt_get): New function.
handa [Thu, 6 Sep 2007 04:03:21 +0000 (04:03 +0000)]
(mfont__flt_run): Improve debug info printing.
handa [Tue, 4 Sep 2007 14:41:57 +0000 (14:41 +0000)]
*** empty log message ***
handa [Tue, 4 Sep 2007 14:41:53 +0000 (14:41 +0000)]
(mflt_find): Prototype adjusted.
handa [Tue, 4 Sep 2007 14:41:13 +0000 (14:41 +0000)]
*** empty log message ***
handa [Tue, 4 Sep 2007 14:38:59 +0000 (14:38 +0000)]
(MFontLayoutTable): Delete this type.
(struct _MFLT): New member mdb and coverage.
(list_flt): Set flt->mdb.
(load_generator): Argument and return value changed. Caller
changed.
(get_font_layout_table): Delete this function.
(run_stages): Argument changed. Caller changed.
(CHECK_FLT_STAGES): New macro.
(mfont__flt_encode_char): Argument changed.
(mflt_find): Likewise.
(mflt_coverage): New function.
(mflt_run): Argument changed.
(mdebug_dump_flt): Likewise.
handa [Tue, 4 Sep 2007 14:21:45 +0000 (14:21 +0000)]
(mflt_coverage): Extern it.
handa [Mon, 3 Sep 2007 00:35:56 +0000 (00:35 +0000)]
*** empty log message ***
handa [Mon, 3 Sep 2007 00:35:52 +0000 (00:35 +0000)]
(MTABLE_CALLOC_SAFE, MSTRUCT_CALLOC_SAFE): New macros.
handa [Mon, 3 Sep 2007 00:35:36 +0000 (00:35 +0000)]
(mdatabase__props): New function.
handa [Mon, 3 Sep 2007 00:35:05 +0000 (00:35 +0000)]
* database.h (mdatabase__props): Extern it.
* m17n-flt.c: Include "database.h".
(struct _MFLT): New struct.
(list_flt): New function.
(load_flt): Don't update flt_list.
(get_font_layout_table): Use flt_list.
(m17n_init_flt): Don't initialize flt_list.
(m17n_fini_flt): Adjusted for the change of flt_list.
(mflt_find): New function.
(mflt_run): Fix debug printing.
handa [Mon, 3 Sep 2007 00:34:45 +0000 (00:34 +0000)]
(struct _MFLTGlyphString): Delete user_data, add
script and langsys.
(struct _MFLTFont): Add suitable_p.
(mflt_find): Extern it.
handa [Mon, 3 Sep 2007 00:33:30 +0000 (00:33 +0000)]
Include "database.h".
(struct _MFLT): New struct.
(list_flt): New function.
(load_flt): Don't update flt_list.
(get_font_layout_table): Use flt_list.
(m17n_init_flt): Don't initialize flt_list.
(m17n_fini_flt): Adjusted for the change of flt_list.
(mflt_find): New function.
(mflt_run): Fix debug printing.
handa [Thu, 23 Aug 2007 07:35:32 +0000 (07:35 +0000)]
*** empty log message ***
handa [Thu, 23 Aug 2007 04:38:38 +0000 (04:38 +0000)]
*** empty log message ***
handa [Thu, 23 Aug 2007 04:38:34 +0000 (04:38 +0000)]
(mfont__flt_run): Don't calculate a glyph metric if
the glyph is already handled by OTF.
handa [Thu, 23 Aug 2007 02:28:35 +0000 (02:28 +0000)]
(run_otf): Remove #ifdef HAVE_OTF and #endi.
(run_stages): Print separator in encoded string as "|".
handa [Tue, 21 Aug 2007 07:17:37 +0000 (07:17 +0000)]
*** empty log message ***
handa [Tue, 21 Aug 2007 07:17:33 +0000 (07:17 +0000)]
(ft_check_capability): Check cap->script_tag at first.
handa [Mon, 20 Aug 2007 14:02:06 +0000 (14:02 +0000)]
*** empty log message ***
handa [Mon, 20 Aug 2007 14:02:02 +0000 (14:02 +0000)]
(mfont__flt_run): Get glyph metrics before printing
debug information.
handa [Fri, 17 Aug 2007 13:03:37 +0000 (13:03 +0000)]
*** empty log message ***
handa [Fri, 17 Aug 2007 13:02:53 +0000 (13:02 +0000)]
(struct _MFLTGlyphString): Member pointer renamed to
user_data.
(MFLTOtfSpec): Renamed from MFLT_OTF_Spec.
(MFLTFont): Prototype of the member drive_otf adjusted.
handa [Fri, 17 Aug 2007 07:32:10 +0000 (07:32 +0000)]
(run_stages): Fix handling of padding.
handa [Fri, 17 Aug 2007 07:31:49 +0000 (07:31 +0000)]
(get_glyph_metric): New function.
(DEVICE_DELTA): Return 26.6 fixed point value.
(adjust_anchor): Likewise.
(mfont__ft_drive_otf): Use get_glyph_metric.
handa [Fri, 17 Aug 2007 07:30:27 +0000 (07:30 +0000)]
(mfont__flt_run): Pay attention to padding on
printing debug info.
handa [Thu, 16 Aug 2007 12:08:18 +0000 (12:08 +0000)]
*** empty log message ***
handa [Thu, 16 Aug 2007 12:08:13 +0000 (12:08 +0000)]
(run_stages): Fix typo.
handa [Thu, 16 Aug 2007 06:00:05 +0000 (06:00 +0000)]
*** empty log message ***
handa [Thu, 16 Aug 2007 06:00:02 +0000 (06:00 +0000)]
(adjust_anchor): Argument changed. Calculte based on
26.6 fixed point.
(mfont__ft_drive_otf): Don't call OTF_check_features for GPOS.
Adjusted for the argument change of adjust_anchor. Calculte based
on 26.6 fixed point.
handa [Thu, 16 Aug 2007 05:20:09 +0000 (05:20 +0000)]
(mfont__ft_drive_otf): Don't call OTF_check_features
for GPOS.
handa [Wed, 15 Aug 2007 12:37:34 +0000 (12:37 +0000)]
* m17n-flt.pc.in (prefix): New file.
handa [Wed, 15 Aug 2007 12:37:24 +0000 (12:37 +0000)]
*** empty log message ***
handa [Wed, 15 Aug 2007 11:45:44 +0000 (11:45 +0000)]
*** empty log message ***
handa [Wed, 15 Aug 2007 11:45:39 +0000 (11:45 +0000)]
(mcharset__load_from_database): Set mdebug_flag
instead of mdebug_mask.
handa [Wed, 15 Aug 2007 11:45:21 +0000 (11:45 +0000)]
(mcoding__load_from_database): Set mdebug_flag instead
of mdebug_mask.