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.
handa [Wed, 15 Aug 2007 11:45:05 +0000 (11:45 +0000)]
(load_database): Set mdebug_flag instead of
mdebug_mask.
(mdatabase__load_for_keys): Likewise.
handa [Wed, 15 Aug 2007 11:44:38 +0000 (11:44 +0000)]
Include "internal-flt.h".
(dump_combining_code): Don't subtract 128 from combining code
off_x/y.
handa [Wed, 15 Aug 2007 11:42:58 +0000 (11:42 +0000)]
* font-flt.c: Include "internal-flt.h". Set mdebug_flag instead
of mdebug_mask.
(run_rule): Print debug info only when MDEBUG_FLAG is greater than
2.
(run_cond): Likewise.
(run_otf): Likewise.
(run_command): Likewise.
(mfont__flt_run): Change format of debug info.
* m17n-flt.c: New file created by modifying font-flt.c.
handa [Wed, 15 Aug 2007 11:40:59 +0000 (11:40 +0000)]
Include "internal-flt.h".
Set mdebug_flag instead of mdebug_mask.
(mfont__ft_drive_otf): Fix arg to OTF_check_features.
handa [Wed, 15 Aug 2007 11:40:14 +0000 (11:40 +0000)]
Set mdebug_flag instead of mdebug_mask.
(shift_state): New MDEBUG_FLAG macro.
(preedit_commit): Likewise.
(filter): Likewise.
handa [Wed, 15 Aug 2007 11:39:32 +0000 (11:39 +0000)]
* internal-flt.h: New file.
* internal-gui.h (MAKE_COMBINING_CODE, COMBINING_CODE_OFF_Y)
(COMBINING_CODE_OFF_X, COMBINING_CODE_BASE_X)
(COMBINING_CODE_BASE_Y, COMBINING_CODE_ADD_X)
(COMBINING_CODE_ADD_Y, MAKE_COMBINING_CODE_BY_CLASS)
(COMBINING_BY_CLASS_P, COMBINING_CODE_CLASS)
(MAKE_PRECOMPUTED_COMBINDING_CODE, COMBINING_PRECOMPUTED_P): Move
these macros to internal-flt.h.
handa [Wed, 15 Aug 2007 11:39:19 +0000 (11:39 +0000)]
(MAKE_COMBINING_CODE, COMBINING_CODE_OFF_Y)
(COMBINING_CODE_OFF_X, COMBINING_CODE_BASE_X)
(COMBINING_CODE_BASE_Y, COMBINING_CODE_ADD_X)
(COMBINING_CODE_ADD_Y, MAKE_COMBINING_CODE_BY_CLASS)
(COMBINING_BY_CLASS_P, COMBINING_CODE_CLASS)
(MAKE_PRECOMPUTED_COMBINDING_CODE, COMBINING_PRECOMPUTED_P): Move
these macros to internal-flt.h.
handa [Wed, 15 Aug 2007 11:38:10 +0000 (11:38 +0000)]
(M17N_OBJECT_ADD_ARRAY): Adjusted for the change of
mdebug__flags.
(M17N_OBJECT_REGISTER, M17N_OBJECT_UNREGISTER): Likewise.
(enum MDebugMaskBit): Delete this enum.
(enum MDebugFlag): New enum.
(mdebug__flag): Don't extern it.
(mdebug__flags): Extern it.
(MDEBUG_FLAG): New macro.
(MDEBUG_PRINT0): Use the macro MDEBUG_FLAG.
(MDEBUG_DUMP, MDEBUG_PUSH_TIME, MDEBUG_POP_TIME)
(MDEBUG_PRINT_TIME): Likewise.
handa [Wed, 15 Aug 2007 11:35:50 +0000 (11:35 +0000)]
(xfont_open): Set mdebug_flag instead of mdebug_mask.
(xfont_list): Likewise.
handa [Wed, 15 Aug 2007 11:35:21 +0000 (11:35 +0000)]
(mdebug__flag): Delete this variable.
(mdebug__flags): New variable.
(SET_DEBUG_FLAG): Make it a function.
(m17n_init_core): Set mdebug_flag instead of mdebug_mask.
(m17n_fini_core): Likewise.
handa [Wed, 15 Aug 2007 11:33:56 +0000 (11:33 +0000)]
(m17n_init_win): Set mdebug_flag instead of mdebug_mask.
(m17n_fini_win): Likewise.
handa [Wed, 15 Aug 2007 11:33:30 +0000 (11:33 +0000)]
(enum MErrorCode): Add MERROR_FLT.
handa [Wed, 15 Aug 2007 11:32:25 +0000 (11:32 +0000)]
(m17n_init): Set mdebug_flag instead of mdebug_mask.
(m17n_fini): Likewise.
handa [Wed, 15 Aug 2007 11:31:39 +0000 (11:31 +0000)]
(msymbol__free_table): Adjusted for the change of
mdebug__flags.
handa [Wed, 15 Aug 2007 11:31:01 +0000 (11:31 +0000)]
(BASICBUILDS): Add libm17n-flt.la.
(BASICHEADERS): Add m17n-flt.h.
(FLT_SOURCES): New variable.
(libm17n_flt_la_SOURCES, libm17n_flt_la_LIBADD)
(libm17n_flt_la_LDFLAGS): Likewise.
handa [Wed, 15 Aug 2007 11:29:41 +0000 (11:29 +0000)]
*** empty log message ***
handa [Wed, 15 Aug 2007 11:29:31 +0000 (11:29 +0000)]
(AC_CONFIG_FILES): Add m17n-flt.pc.
handa [Wed, 15 Aug 2007 11:29:06 +0000 (11:29 +0000)]
(EXTRA_DIST): Add m17n-flt.pc.in.
(BASICDATA): Add m17n-flt.pc.
handa [Wed, 15 Aug 2007 11:15:19 +0000 (11:15 +0000)]
New file.
handa [Wed, 15 Aug 2007 11:14:21 +0000 (11:14 +0000)]
New file created by modifying font-flt.c.
tomo [Fri, 13 Jul 2007 00:48:56 +0000 (00:48 +0000)]
This commit was manufactured by cvs2svn to create branch 'FLT'.
handa [Fri, 13 Jul 2007 00:48:52 +0000 (00:48 +0000)]
*** empty log message ***
handa [Thu, 12 Jul 2007 04:50:52 +0000 (04:50 +0000)]
*** empty log message ***
handa [Thu, 12 Jul 2007 04:50:48 +0000 (04:50 +0000)]
Fix doxygen @ref commands.
handa [Tue, 10 Jul 2007 01:35:14 +0000 (01:35 +0000)]
*** empty log message ***
handa [Tue, 10 Jul 2007 01:35:08 +0000 (01:35 +0000)]
(M17NFunc): Fix typo of Doxygen directive.
handa [Mon, 9 Jul 2007 01:53:10 +0000 (01:53 +0000)]
*** empty log message ***
handa [Mon, 9 Jul 2007 01:53:04 +0000 (01:53 +0000)]
* m17n-core.h (M17N_BEGIN_HEADER, M17N_END_HEADER): New macros.