のねのBlog

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

Fonts

ttx

$ ttx usage: ttx [options] inputfile1 [... inputfileN] TTX 2.5 -- From OpenType To XML And Back If an input file is a TrueType or OpenType font file, it will be dumped to an TTX file (an XML-based text format). If an input file is a TTX fi…

glyph composite

glyf - Glyf Data This table contains information that describes the glyphs in the font in the TrueType outline format. Information regarding the rasterizer (scaler) refers to the TrueType rasterizer. Each glyph begins with the following he…

fontforge error Missing Points at Extrema

Self Intersectiong フォント内にパス同士が交差する箇所があるとき Wrong Direction フォント作成のルールである「外側の輪郭は時計回り、内側の輪郭は反時計回り」に反しているとき Missing Points at Extrema 点の個数の上限を越えたとき Non-integral co…

hb-view unicode

$ cp /usr/share/fonts/truetype/tlwg/Garuda.ttf $ printf '\ue01' | hb-view ./Garuda.ttf $ printf '\ue01' | hb-shape ./Garuda.ttf [uni0E01=0+641]

hb-shape --help-all

u01@vm01:~$ hb-shape --help-all Usage: hb-shape [OPTION...] [FONT-FILE] [TEXT]Help Options: -h, --help Show help options --help-all Show all help options --help-font Options controlling the font --help-text Options controlling the input te…

hb-view --help-all

u01@vm01:~$ hb-view --help-all Usage: hb-view [OPTION...] [FONT-FILE] [TEXT]Help Options: -h, --help Show help options --help-all Show all help options --help-font Options controlling the font --help-text Options controlling the input text…

shape_closure_consumer_t用 main

①ー2:shape_closure_consumer_t用 110 int 111 main (int argc, char **argv) 112 { 113 main_font_text_t<shape_closure_consumer_t, FONT_SIZE_NONE, 0> driver; 114 return driver.main (argc, argv); 115 } ②共通 50 template <typename consumer_t, int default_font_size, int subpixel_bits> 51 struct main_font_text_t…</typename></shape_closure_consumer_t,>

shape_consumer_t用 main

hb_shape_full() at hb-shape.cc:374 0x7ffff7b413df shape_options_t::shape() at options.hh:248 0x4049bc shape_consumer_t<view_cairo_t>::consume_line() at shape-consumer.hh:61 0x4053b2 main_font_text_t<shape_consumer_t<view_cairo_t>, 256, 8>::main() at main-font-text.hh:80 0x4051eb main</shape_consumer_t<view_cairo_t></view_cairo_t>…

hb_shape

399 void 400 hb_shape (hb_font_t *font, 401 hb_buffer_t *buffer, 402 const hb_feature_t *features, 403 unsigned int num_features) 404 { 405 hb_shape_full (font, buffer, features, num_features, NULL); 406 }

add

hb_buffer_t::add() at hb-buffer.cc:241 0x7ffff7b33f90 hb_buffer_add_utf<hb_utf8_t>() at hb-buffer.cc:1,484 0x7ffff7b36fb5 hb_buffer_add_utf8() at hb-buffer.cc:1,519 0x7ffff7b3629b shape_options_t::populate_buffer() at options.hh:226 0x4048ef shape_co</hb_utf8_t>…

hb-view

template <typename consumer_t, int default_font_size, int subpixel_bits> struct main_font_text_t { main_font_text_t (void) : options ("[FONT-FILE] [TEXT]"), <==デフォルト値 font_opts (&options, default_font_size, subpixel_bits), input (&options), consumer (&options) {} int main (int argc, char **argv)</typename>…

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

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…

Program Argument

--font="Garuda 50" test-thai_kigen.txt --output=pv_kigen.png

with-glib=no

with-glib=noにしたとき、 Unicodeの検索だけglibを使わなくなるのかな?ほかのglibの関数は呼び出すように見える。 $ ./configure --prefix=$HOME/usr --with-glib=no

ucdn

glibをNOにすると、UCDNがyesになる configure --prefix=$HOME/usr --with-glib=noBuild configuration: Unicode callbacks (you want at least one): Glib: false ICU: false UCDN: true Font callbacks (the more the better): FreeType: true Tools used …

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…

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

Thai Font

Arial Unicode MS Leelawadee Leelawadee UI Microsoft Sans Serif Tahoma

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

configure with libthai

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

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…