のねのBlog

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

Fonts

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/pango-layout.c

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…

PangoFontDescription

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…

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 = …

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 ==…

valgrind

1352 valgrind --tool=callgrind pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png 1353 ls 1354 callgrind_annotate --auto=yes callgrind/out.31057 1355 callgrind_annotate --auto=yes ./callgrind/out.31057 13…

perf report

1344 perf record -g pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png --runs=10000 1345 perf report --comm=pango-view --call-graph | cat -n > aaa.txt 1346 less aaa.txt 1347 perf report --comm=pango-view …

opcontrol

$ sudo opcontrol --no-vmlinux --callgraph 10000000$ sudo opcontrol --reset $ sudo opcontrol --start && pango-view --font="Garuda 50" ~/layout/text/test-thai_kigen.txt --output=pv_kigen.png ; sudo opcontrol --stop $ sudo opcontrol --dump

sprof

-rw-rw-r-- 1 u01 u01 59 11月 11 15:17 test-thai_kigen.txt -rw-rw-r-- 1 u01 u01 24576 11月 11 15:52 typescript u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ export LD_PROFILE u01@vm01:~/layout/oss/pango-1.36.8/pango-view/.libs$ expor…

メイクのコンパイルオプションを表示する。make V=1

u01@vm01:~/layout/oss/pango-1.36.8/pango-view$ make V=1 cp ./../modules/pangorc pangorc make all-am make[1]: Entering directory `/home/u01/layout/oss/pango-1.36.8/pango-view' gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_DISABLE_CAST_CHECKS -pthre…

test_layout

500 main (int argc, char *argv[]) 501 { 502 GDir *dir; 503 GError *error = NULL; 504 const gchar *name; 505 gchar *path; 506 507 g_setenv ("LC_ALL", "C", TRUE); 508 setlocale (LC_ALL, ""); 509 510 g_test_init (&argc, &argv, NULL); 511 512 …

pango-view

pango-view --font="Garuda 50" test-thai_kigen.txt --output=pv_kigen.pnghb-view /usr/share/fonts/truetype/tlwg/Garuda.ttf --text-file=test-thai_kigen.txt --output-format=png --output-file=hb_thai_kigen.png

pango-view

562 pango-view --font="Garuda 50" -text="abc" 563 pango-view --font="Garuda 50" -t="abc" 564 pango-view 565 pango-view --help 566 pango-view --font="Garuda 50" --text="abc" 567 pango-view --font="Garuda 50" text-thai_s2.txt 568 ls 569 pang…

pango config --help

u01@vm01:~/layout/oss/pango-1.36.8$ ./configure --help

Failed to load Pango module

u01@vm01:~/layout/text$ pango-view --font="Garuda 50" test-thai_s1.txt (pango-view:47169): GLib-GObject-WARNING **: cannot register existing type 'PangoEngine' (pango-view:47169): GLib-CRITICAL **: g_once_init_leave: assertion 'result != 0…

pango configure

u01@vm01:~/layout/oss/pango-1.36.8 $ ./configure --prefix=$HOME/usr -enable-static -disable-shared --with-included-modules=yes

hb-view file

u01@vm01:~/layout/text$ hb-view /usr/share/fonts/truetype/tlwg/Garuda.ttf --text-file=test-thai_s1.txt --output-format=png --output-file=hb_thai_s1.png

hb-shape

u01@vm01:~/layout/text$ hb-shape /usr/share/fonts/truetype/tlwg/Garuda.ttf --text="abc" [a=0+569|b=1+569|c=2+511] u01@vm01:~/layout/text$ hb-shape /usr/share/fonts/truetype/tlwg/Garuda.ttf --text-file=test-thai_s1.txt [uni0E25=0+607|uni0E4…

hb-view

u01@vm01:~/layout/text$ hb-view /usr/share/fonts/truetype/tlwg/Garuda.ttf --text="abc" ▊ ▊ ▊ ▁▄ ▁ ▊ ▃ ▂ ▁▄ ▄▁ ▆▇▇▇▆ ▏ ▊ ▆▇▇▆ ▅▇▇▆▅ ▖ ▉ ▟ ▋ ▌ ▊ ▟ ▙ ▟ ▁▂▂▃▄ ▊ ▏ ▃ ▊ ▎ ▉ ▆ ▋ ▊ ▗▄▄ ▗ ▊ ▟ ▙ ▗ ▙ ▄ ▊ ▄▄ ▟ ▙ ▄ ▆ ▄▆ ▙ ▟ ▅ ▄▆ ▇▅ ▅▇

hb-view --help-all

u01@vm01:~/layout/text$ hb-view --help-all

harfbuzz configure

u01@vm01:~/layout/oss/harfbuzz-1.0.6$ ./configure -h

pango-view

pango-view --font="garuda 50" test-thai2.txt

fc-list

fc-list :lang=th /usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf: Tlwg Typo:style=Bold /usr/share/fonts/X11/misc/7x14.pcf.gz: Fixed:style=Regular /usr/share/fonts/truetype/tlwg/Umpush.ttf: Umpush:style=Book /usr/share/fonts/truetype/freef…

pango.pc

prefix=/home/u01/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include pango_module_version=1.8.0 Name: Pango Description: Internationalized text handling Version: 1.36.8 Requires: glib-2.0 gobject-2.0 Requires.p…

pango ./configure

u01@vm01:~/layout/oss/pango-1.36.8$ ./configure --prefix=$HOME/usr --enable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/m…

font-config fc-list

u01@vm01:~/layout/oss/fontconfig-2.11.92$ fc-list /usr/share/fonts/truetype/droid/DroidSansHebrew-Regular.ttf: Droid Sans Hebrew:style=Regular /usr/share/fonts/truetype/tlwg/TlwgTypo-Bold.ttf: Tlwg Typo:style=Bold /usr/share/fonts/truetype…