のねのBlog

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

2018-07-01から1ヶ月間の記事一覧

freetype readpoint

>|| FT_LOCAL_DEF( FT_Error ) TT_Vary_Get_Glyph_Deltas( TT_Face face, FT_UInt glyph_index, FT_Vector* *deltas, FT_UInt n_points ) { FT_Stream stream = face->root.stream; FT_Memory memory = stream->memory; GX_Blend blend = face->blend; FT_Ve…

freetype all pointsの処理

/*************************************************************************/ /* */ /* The macro ALL_POINTS is used in `ft_var_readpackedpoints'. It */ /* indicates that there is a delta for every point without needing to */ /* enumerate all…

Serialized data

Serialized dataAfter the coordinate data for the glyph's tuples is a block of serialized data. This data contains the points the tuples operate on and their deltas.If the tuples_share_point_numbers flag is set, the serialized data begins w…

private_point_numbers

private_point_numbers Flag indicating that the preceding tuple data for this tuple is a set of packed point numbers that this tuple operates on. If this bit is clear, this tuple uses shared point numbers. このタプルの前のタプルデータが こ…

tuples_share_point_numbers

Currently, the only flag bit supported is 0x8000, tuples_share_point_numbers. This means that all of the tuples reference a common set of packed point numbers that follow immediately after the tuple array. 現在サポートされている唯一のフラ…

vs2017でfonttoolsのtestがdebugでみれた。

プロジェクトを新規に作成し、 fonttoolsの場所を指定しただけで、 特に設定はしていない。ステップ実行できるのが、いいと思う。

ファントムポイント

google翻訳 ファントムポイント Microsoftラスタライザv.1.7以降では、 すべてのアウトラインの最後に4つの「ファントムポイント」が追加され、 幅または高さの制御が可能になります (v.1.7より前のMSラスタライザは2つのファントムポイントを追加するだけ…

packed delta その6

カウントは1バイトまたは2バイトで格納されます。 第1のバイトを読み取った後、第2のバイトの必要性を判定することができる。 カウントバイトは次のように処理されます。最初のバイトが0の場合、2番目のカウントバイトは使用されません。 この値には特別な意…

packed delta その5

# all points in glyph (in overly verbose encoding, not explicitly prohibited by spec) #グリフ内のすべての点(仕様によって明示的に禁止されていない、過度に冗長なエンコーディング)https://github.com/fonttools/fonttools/blob/master/Tests/ttLi…

packed delta その4

@staticmethod def decompilePoints_(numPoints, data, offset, tableTag): """(numPoints, data, offset, tableTag) --> ([point1, point2, ...], newOffset)""" assert tableTag in ('cvar', 'gvar') pos = offset numPointsInData = byteord(data[pos]) p…

packed delta その3

def test_compilePoints(self): compilePoints = lambda p: TupleVariation.compilePoints(set(p), numPointsInGlyph=999) self.assertEqual("00", hexencode(compilePoints(range(999)))) # all points in glyph self.assertEqual("01 00 07", hexencode(co…

packed delta その2

staticmethod def compilePoints(points, numPointsInGlyph): # If the set consists of all points in the glyph, it gets encoded with # a special encoding: a single zero byte. if len(points) == numPointsInGlyph: return b"\0"https://github.com/f…

packed delta

VariableFontのPackedDeltaを解析していて、先頭に、0x00があるときがある。 この意味がよくわからない。例 AdobeVFPrototype.ttfgvar - “.notdef” - tuple2 dump 0000A75A 0000A750 -- -- -- -- -- -- -- -- -- -- -- -- 00 80 0A EC 00 14 .##............…

gvar packed delta

static FT_Short* ft_var_readpackeddeltas( FT_Stream stream, FT_Offset delta_cnt ) { FT_Short *deltas = NULL; FT_UInt runcnt; FT_Offset i; FT_UInt j; FT_Memory memory = stream->memory; FT_Error error = FT_Err_Ok; FT_UNUSED( error ); if ( FT…

windows10で、インデックスを作らなくする方法

"Windowsキー"+"R"で、control入力 コントロールパネルが開くインデックスのオプションをクリックする。変更を押す。チェックを外すと、インデックスを作らなくなる。

nvidia hdmi 画面の黒が灰色になるとき

限定をフルにする。 bbs.kakaku.com

80070006 ハンドルが無効です。dwmapi.dll

自作のプログラムのデバッグに、以下のようなメッセージが出ている。 なんだろう。 コントローラのウィンドウを動かすとでる。 リフレッシュのたびに出ている感じだ。 スレッド 0x495c はコード 0 (0x0) で終了しました。 windows\dwm\dwmapi\attribute.cpp(…

android monitor 動かない

C:\Users\m_fujii\AppData\Local\Android\Sdk\tools>.\android.bat ************************************************************************** The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android …

ttx -l

ttx

λ ttx -l AvenirNext_Variable.ttf Listing table info for "AvenirNext_Variable.ttf": tag checksum length offset ---- ---------- ------- ------- GPOS 0x7B2F8646 4182 21168 GSUB 0x2B6D4DE1 2074 25352 OS/2 0x66A07AF0 96 424 cmap 0x621E1524 476 …

ttx list

ttx -l AdobeVFPrototype.ttf Listing table info for "AdobeVFPrototype.ttf": tag checksum length offset ---- ---------- ------- ------- BASE 0x8B1E94B1 58 222680 DSIG 0x00000001 8 41692 GDEF 0x6A49F646 18285 204352 GPOS 0xD838104E 66034 1383…

"16.16" Fixed point

0x7AE1 /0x10000=31457/65536=0.4799957275390625 =0.480x3333/0x10000=13107/65536=0.1999969482421875=0.20x0003 3333 = 3.2 stackoverflow.com

truetype xml 秀丸アウトライン

/<TreeWord> /0000,0002,0000,00000000,00000112,"</treeword>

get_mm_var

94 FT_EXPORT_DEF( FT_Error ) 95 FT_Get_MM_Var( FT_Face face, 96 FT_MM_Var* *amaster ) 97 { 98 FT_Error error; 99 FT_Service_MultiMasters service; 100 101 102 /* check of `face' delayed to `ft_face_get_mm_service' */ 103 104 if ( !amaster )…

ftmultiでvariable fontが見れる

ft2demosのftmultiをVisual Studio2017でビルドした。 github.comF1 F2などで、各軸が動かせるようです。 sprintf( buf, "FreeType MM Glyph Viewer - part of the FreeType %s test suite", version ); grWriteln( buf ); grLn(); grWriteln( "This program…

ft2demos build include internal error

ft2demos-2.9.1\src\ftvalid.c(29): error C2006: '#include': '識別子' はファイル名ではありません。 ft2demos-2.9.1\src\ftvalid.c(29): fatal error C1083: include ファイルを開けません。'':No such file or directory_CRT_SECURE_NO_WARNINGS FT_DEBU…

MIDebuggerPath

Unable to start debugging. Launch options string provided by project system is invalid. Unable to determine path to debugger. Please specify the "MIDebuggerPath" optiongithub.comgdbが入ってなかった。 $sudo s apt install gdbUnable to start …

wsl vscode install

wsl

code.visualstudio.com $ /usr/share/code/bin/../code: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directoryaskubuntu.com github.com $ /usr/share/code/bin/../code: error while loading sh…

wsl ubuntu 16.04 fontview

wsl

wsl fontview ubuntu 16.04だと、スライダーの文字が文字化けしない。 ubuntu 18.04だと、スライダーの文字が文字化けする fontview

wsl ubuntu 16.04 fontview error while loading shared libraries: libraqm.so.0: cannot open shared object file: No such file or directory

m_fujii@None53-Surface:~/github/fontview $ ./build/fontview ./build/fontview: error while loading shared libraries: libraqm.so.0: cannot open shared object file: No such file or directorym_fujii@None53-Surface:~/github/fontview $ ldd ./bui…

wslに、ubuntu 16.04 と18.04を入れたとき、デフォルトのbashの切り替え方

wsl

wslconfig /s Linux 用 Windows サブシステムの管理操作を実行します 使用法: /l、/list [/all] - 登録されたディストリビューションを一覧表示します。 /all - すべてのディストリビューションを一覧表示します (オプション)。 現在インストールまたはアン…