のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

Pango

pango_cairo_renderer_show_text_glyphs

424 static void 425 pango_cairo_renderer_show_text_glyphs (PangoRenderer *renderer, 426 const char *text, 427 int text_len, 428 PangoGlyphString *glyphs, 429 cairo_text_cluster_t *clusters, 430 int num_clusters, 431 gboolean backward, 432 …

pango_glyph_string_extents_range

_pango_cairo_font_private_get_glyph_extents_cache_entry() at pangocairo-font.c:791 0x7ffff7773553 _pango_cairo_font_private_get_glyph_extents() at pangocairo-font.c:832 0x7ffff7773553 pango_glyph_string_extents_range() at glyphstring.c:211…

pango-layout_get_pixel_exteents

pango-layout_get_pixel_exteents _pango_engine_shape_shape

pango 1.38.1

pango_cairo_renderer_show_text_glyphs() at pangocairo-render.c:494 0x7ffff777501b pango_cairo_renderer_draw_glyphs() at pangocairo-render.c:526 0x7ffff77754b4 pango_renderer_draw_glyphs() at pango-renderer.c:642 0x7ffff7bb65df pango_render…

pango 1.38.1 pango-view

Program arguments: --font="Garuda 50" test-thai_kigen.txt --output=pv_kigen.pngWorking directory ${workspace_loc:PangoView_1.38.1} Use default

makeエラー

harfbuzzでglibを切ると、pangoでmakeエラーになる u01@vm01:~/layout/oss/pango-1.38.1$ ./configure --prefix=$HOME/usr --enable-debug=yes u01@vm01:~/layout/oss/pango-1.38.1$ make make[2]: Entering directory `/home/u01/layout/oss/pango-1.38.1/p…

make error

345 #if HB_VERSION_ATLEAST(1,0,3) 346 hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); 347 #endifgcc - what does the compiler error "missing binary operator before token" mean? - Stack Overflow make[4]:…

pango 1.38.1

u01@vm01:~/layout/oss/pango-1.38.1$ ./configure --prefix=$HOME/usr --enable-debug=yes

error glib=no

(inf-view:130150): Pango-WARNING **: /home/u01/usr/lib/pango/1.8.0/modules/pango-basic-fc.so: undefined symbol: hb_glib_get_unicode_funcs (inf-view:130150): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoR…

トウフがでるとき

UCDNのとき、トウフがでる。 fallback_engine_shape() at pango-engine.c:190 0x7ffff7ba9450 pango_shape_full() at shape.c:176 0x7ffff7bb906f shape_run() at pango-layout.c:3,293 0x7ffff7b9c39c process_item() at pango-layout.c:3,406 0x7ffff7b9c6…

substitute_start

pango-view Default [C/C++ Application] pango-view [80235] [cores: 0] Thread #1 [pango-view] 80235 [core: 0] (Suspended : Step) substitute_start() at hb-ot-layout-gsub-table.hh:1,290 0x7ffff5d2f326 hb_ot_layout_substitute_start() at hb-ot-l…

FT_Get_Char_Index

pango-view Default [C/C++ Application] pango-view [80235] [cores: 0] Thread #1 [pango-view] 80235 [core: 0] (Suspended : Step) tt_cmap4_char_map_binary() at ttcmap.c:1,141 0x7ffff5fbec03 tt_cmap4_char_index() at ttcmap.c:1,359 0x7ffff5fc5d…

IA__FcFreeTypeCharIndex

fontconfig/fcfreetype.c IA__FcFreeTypeCharIndex() at fcfreetype.c:2,404 0x7ffff6df48d0 pango_fc_font_real_get_glyph() at pangofc-font.c:657 0x7ffff7981dc7 pango_fc_hb_font_get_glyph() at basic-fc.c:126 0x7ffff39b7b16 get_glyph() at hb-font…

preprocess_text_thai

preprocess_text_thai() at hb-ot-shape-complex-thai.cc:316 0x7ffff5d4e399 hb_ot_substitute_default() at hb-ot-shape.cc:553 0x7ffff5d458ed hb_ot_substitute() at hb-ot-shape.cc:595 0x7ffff5d458ed hb_ot_shape_internal() at hb-ot-shape.cc:795 0…

get_glyph

pango-view Default [C/C++ Application] pango-view [55554] [cores: 0] Thread #1 [pango-view] 55554 [core: 0] (Suspended : Step) pango_fc_hb_font_get_glyph() at basic-fc.c:128 0x7ffff39b7b21 get_glyph() at hb-font-private.hh:159 0x7ffff5d519…

hb_shape

basic_engine_shape() at basic-fc.c:340 0x7ffff39b7bbf pango_shape_full() at shape.c:116 0x7ffff7bb8f7b shape_run() at pango-layout.c:3,293 0x7ffff7b9c39c process_item() at pango-layout.c:3,406 0x7ffff7b9c68d process_line() at pango-layout.…

pacman -Rsc mingw-w64-x86_64-gcc

$ pacman -Rsc mingw-w64-x86_64-gcc 依存関係を確認しています... パッケージ (8) mingw-w64-x86_64-gcc-ada-5.2.0-4 mingw-w64-x86_64-gcc-fortran-5.2.0-4 mingw-w64-x86_64-gcc-objc-5.2.0-4 mingw-w64-x86_64-isl-0.14.1-2 mingw-w64-x86_64-mpc-1.0.3-…

pacman -S mingw-w64-x86_64-glib2

~/layout/oss/pango-1.38.1:$ pacman -S mingw-w64-x86_64-glib2 依存関係を解決しています... 衝突するパッケージがないか確認しています... パッケージ (1) mingw-w64-x86_64-glib2-2.46.2-1 合計ダウンロード容量: 2.86 MiB 合計インストール容量: 19.73 …

pkg-config

MINGW64 ~/layout/oss/pango-1.38.1 $ pkg-config --list-all isl isl - isl Library gnurx regex - Regular Expressions library formw formw - ncurses 6.0 add-on library menuw menuw - ncurses 6.0 add-on library python2 Python - Python library pan…

gccをインストールしないでconfigureを実行してみた。

gccをインストールしないでconfigureを実行してみた。 ~/layout/oss/pango-1.38.1 $ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p..…

pango fatal error C1083: include ファイルを開けません。'msvc_recommended_pragmas.h':No such file or directory

VS2013でビルドすると、以下のエラーが出た。 このファイルが見つからない。 fatal error C1083: include ファイルを開けません。'msvc_recommended_pragmas.h':No such file or directoryプロジェクトのプロパティ>構成プロパティ>C/C++>詳細設定の必ず…

pango configure cmp: command not found

$ ./configure --prefix=$HOME/usrchecking for a working dd... ./configure: line 7843: cmp: command not found ./configure: line 7843: cmp: command not found$ pacman -S mingw-w64-x86_64-diffutils 依存関係を解決しています... 衝突するパッケージ…

pacman -Q

よく使うコマンドとしては pacman -S <package_name1> [package_name2...] : 指定したパッケージをインストールする pacman -Sl [repository] : パッケージを一覧表示する(リポジトリを指定可能) pacman -Ss [regex...] : パッケージを一覧・検索する(キーワードを指定可</package_name1>…

gdb console

273,124 2-gdb-version 273,125 ~"GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1\n" 273,129 ~"Copyright (C) 2014 Free Software Foundation, Inc.\n" 273,129 ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is fre\ e software: you are free to</http://gnu.org/licenses/gpl.html>…

pango-querymodules

タイ語のモジュールが表示されるようになった。 u01@vm01:~/usr/bin$ ./pango-querymodules # Pango Modules file # Automatically generated file, do not edit # # ModulesPath = /home/u01/usr/lib/pango/1.8.0/modules # /home/u01/usr/lib/pango/1.8.0/…

makefile

522 pango-thai-lang.la: $(pango_thai_lang_la_OBJECTS) $(pango_thai_lang_la_DEPENDENCIES) $(EXTRA_pango_thai_lang_la_DEPENDENCIES) $(AM_V_CCLD)$(pango_thai_lang_la_LINK) $(am_pango_thai_lang_la_rpath) $(pango_thai_lang_la_OBJECTS) $(pango_t…

make

modules/thai/Makefile -288 LIBTHAI_CFLAGS = /home/u01/usr/include +288 LIBTHAI_CFLAGS = -I/home/u01/usr/include435 libpango_thai_lang_la_CFLAGS = -DPANGO_MODULE_PREFIX=_pango_thai_lang $(LIBTHAI_CFLAGS)

makeでエラー fatal error: thai/thwchar.h: No such file or directory

pangoのmakeでエラー thai-lang.c:26:26: fatal error: thai/thwchar.h: No such file or directory #include <thai/thwchar.h> ^LIBTHAI_CFLAGSを宣言してみたけど、エラーのまま CC thai-lang.lo thai-lang.c:26:26: fatal error: thai/thwchar.h: No such file or directo</thai/thwchar.h>…

configure with libthai

libthaiをインストールしてから、configureした。 $ ./configure --prefix=$HOME/usr

pango-querymodules

u01@vm01:~/usr/bin$ ./pango-querymodules # Pango Modules file # Automatically generated file, do not edit # # ModulesPath = /home/u01/usr/lib/pango/1.8.0/modules # /home/u01/usr/lib/pango/1.8.0/modules/pango-basic-fc.so BasicScriptEngineFc…

get_shaper_and_font

1257 static gboolean 1258 get_shaper_and_font (ItemizeState *state, 1259 gunichar wc, 1260 PangoEngineShape **shape_engine, 1261 PangoFont **font) 1262 { 1263 GetShaperFontInfo info; 1264 1265 /* We'd need a separate cache when fallback is…

make fribidi_tab_char_type_n.i

44 #error You have no fribidi_tab_char_type_*.i file, please first make one by \ 45 make fribidi_tab_char_type_n.i which n is the compress level, a digit \ 46 between 2 and 9, or simply run make fribidi_tab_char_type_small, \ 47 retry to m…

pango_find_base_dir

946 PangoDirection 947 pango_find_base_dir (const gchar *text, 948 gint length) 949 { 950 PangoDirection dir = PANGO_DIRECTION_NEUTRAL; 951 const gchar *p; 952 953 g_return_val_if_fail (text != NULL || length == 0, PANGO_DIRECTION_NEUTRAL)…

pango_layout_check_lines

3898 3899 static void 3900 pango_layout_check_lines (PangoLayout *layout) 3901 { 3902 const char *start; 3903 gboolean done = FALSE; 3904 int start_offset; 3905 PangoAttrList *attrs; 3906 PangoAttrList *no_shape_attrs; 3907 PangoAttrIterat…

pango_find_map

152 PangoMap * 153 pango_find_map (PangoLanguage *language, 154 guint engine_type_id, 155 guint render_type_id) 156 { 157 GList *tmp_list; 158 PangoMapInfo *map_info = NULL; 159 gboolean found_earlier = FALSE; 160 161 G_LOCK (maps); 162 16…

pango_script_iter_next

251 gboolean 252 pango_script_iter_next (PangoScriptIter *iter) 253 { 254 int start_sp; 255 256 if (iter->script_end == iter->text_end) 257 return FALSE; 258 259 start_sp = iter->paren_sp; 260 iter->script_code = PANGO_SCRIPT_COMMON; 261 i…

pango_script_for_unichar

89 pango_script_for_unichar (gunichar ch) 90 { 91 return g_unichar_get_script (ch); 92 } 93 g_unichar_get_script?() GUnicodeScript g_unichar_get_script (gunichar ch); Looks up the GUnicodeScript for a particular character (as defined by Un…

itemize_state_process_run

pango-view Default [C/C++ Application] pango-view [62093] [cores: 0] Thread #1 [pango-view] 62093 [core: 0] (Suspended : Step) itemize_state_process_run() at pango-context.c:1,482 0x7ffff7ba7d5f pango_itemize_with_base_dir() at pango-conte…

pango_layout_get_pixel_extents

2801 void 2802 pango_layout_get_pixel_extents (PangoLayout *layout, 2803 PangoRectangle *ink_rect, 2804 PangoRectangle *logical_rect) 2805 { 2806 g_return_if_fail (PANGO_IS_LAYOUT (layout)); 2807 2808 pango_layout_get_extents (layout, ink_…

706pango_layout_set_font_description (PangoLayout *layout, 707 const PangoFontDescription *desc) 708{ 709 g_return_if_fail (layout != NULL); 710 711 if (desc != layout->font_desc && 712 (!desc || !layout->font_desc || !pango_font_descripti…

1092PangoFontDescription * 1093pango_font_description_from_string (const char *str) 1094{ 1095 PangoFontDescription *desc; 1096 const char *p, *last; 1097 size_t len, wordlen; 1098 1099 g_return_val_if_fail (str != NULL, NULL); 1100 1101 d…

pango_layout_set_text

89 static PangoLayout * 90 make_layout(PangoContext *context, 91 const char *text, 92 double size) 93 { 94 static PangoFontDescription *font_description; 95 PangoAlignment align; 96 PangoLayout *layout; 97 98 layout = pango_layout_new (con…

get_option_group

749 for (viewer = viewers; *viewer; viewer++) 750 if ((*viewer)->get_option_group) 751 { 752 GOptionGroup *group = (*viewer)->get_option_group (*viewer); 753 if (group) 754 g_option_context_add_group (context, group); 755 } 413 static GOpt…

viewers

9 const PangoViewer *viewers[] = { 10 #ifdef HAVE_CAIRO 11 &pangocairo_viewer, 12 #endif 13 #ifdef HAVE_XFT 14 &pangoxft_viewer, 15 #endif 16 #ifdef HAVE_FREETYPE 17 &pangoft2_viewer, 18 #endif 19 #ifdef HAVE_X 20 &pangox_viewer, 21 #endif…

PangoContext

50 struct _PangoContext 51 { 52 GObject parent_instance; 53 guint serial; 54 guint fontmap_serial; 55 56 PangoLanguage *set_language; 57 PangoLanguage *language; 58 PangoDirection base_dir; 59 PangoGravity base_gravity; 60 PangoGravity res…

pango_fc_hb_font_get_glyph_extents

183 static hb_bool_t 184 pango_fc_hb_font_get_glyph_extents ( hb_font_t *font, void *font_data, 185 hb_codepoint_t glyph, 186 hb_glyph_extents_t *extents, 187 void *user_data G_GNUC_UNUSED) 188 { 189 PangoFcHbContext *context = (PangoFcHbC…

pango_fc_get_hb_font_funcs

279 static hb_font_funcs_t * 280 pango_fc_get_hb_font_funcs (void) 281 { 282 static hb_font_funcs_t *funcs; 283 284 if (G_UNLIKELY (!funcs)) { 285 funcs = hb_font_funcs_create (); 286 hb_font_funcs_set_glyph_func ( funcs, pango_fc_hb_font_…

get_coverageへ関数をセット

165 static void 166 pango_core_text_font_class_init (PangoCoreTextFontClass *class) 167 { 168 GObjectClass *object_class = G_OBJECT_CLASS (class); 169 PangoFontClass *font_class = PANGO_FONT_CLASS (class); 170 171 object_class->finalize = …

pango_cairo_show_layout

1132 pango_cairo_show_layout (cairo_t *cr, 1133 PangoLayout *layout) 1134 { 1135 g_return_if_fail (cr != NULL); 1136 g_return_if_fail (PANGO_IS_LAYOUT (layout)); 1137 1138 _pango_cairo_do_layout (cr, layout, FALSE); 1139 } 1140 999 _pango_…

valgrind

u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ valgrind --tool=callgrind pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png --runs=1000 ==34153== Callgrind, a call-graph generating cache profiler ==…