のねのBlog

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

mac truetype fstype=2 pdf embbeding サブセットで埋め込んでしまう。

mac adobe distiller macの場合、fstype=2にしても、pdfにサブセットで埋め込まれてしまう。 どうしてなんだろう? windowsだと、エラーになって、埋め込めない。 helpx.adobe.com

Vs2019 UnitTest buffer overrun

buffer overrun TEST_METHOD(TM_err_malloc) { unsigned char* a = (unsigned char*)malloc(10); a[20] = 0x12; free(a); } overrun 2 確保した場所の、直後だと、もっと強いエラーメッセージがでた。 TEST_METHOD(TM_err_malloc_10) { unsigned char* a = (…

writeGlyph ufo

def save(self, path): if path is None: path = self.path if os.path.abspath(self.path) != os.path.abspath(path): # If user has specified a path other than the source font path, # then copy the entire UFO font, and operate on the copy. log.i…

macでフォルダの比較

Macでフォルダの比較 VSCodeに、compare folderを入れてみた。 marketplace.visualstudio.com

mac afdko install "SyntaxError: invalid syntax"

Shell Scriptだと思ったら、Pythonでした。 % ./FinishInstallOSX [~/bin/FDK-25-MAC.b65322][master] File "./FinishInstallOSX", line 70 print "Adding a symbolic link from '%s' to the FDK directory %s." % (binPath, realPath) ^ 一行目をpython2に…

"could not read from remote repository push"

mac source tree "could not read from remote repository push" kiraba.jp

python debug modeで実行しているかどうか判断する方法

stackoverflow.com

glyphsで、 1ドット単位で移動する方法。矢印キーのみで、操作

glyphs 矢印で移動 点を選択したあと、 矢印キーのみで操作する。 Shiftを押しながら、矢印キーを押すと10単位になる。

feature.feaを使って、GSUBの追加

font = TTFont(font_name) feaLibBuilder.addOpenTypeFeatures(font, 'feature.fea') font.save("fea_"+font_name) feature.fea languagesystem DFLT dflt; languagesystem cyrl dflt; languagesystem grek dflt; languagesystem hani dflt; languagesystem …

bbox ttfont

github.com

afddko tx -u

tx

% tx -u tx {[mode][mode options][shared options][files]}* tx [other options] (-***** -h for help) [modes: default -dump] -dump write text dump of font data -ps write PostScript dump of font data -pdf write PDF dump of font data -dcf write …

feat.c

feat.c 1786行目付近 /* --- Glyph --- */ /* Map feature file glyph name to gid; emit error message and return notdef if not found (in order to continue until hotQuitOnError() called) */ static GID featMapGName2GID(hotCtx g, char *gname, int…

ERROR: Could not install packages due to an EnvironmentError:

pip install -r requirements.txt 以下のようなエラーが出た。 何回も、 pip install -r requirements.txt を行うと、進むときもある。 進まない場合だけ、個別に、ダウングレードを行った。 ERROR: Could not install packages due to an EnvironmentError:…

mac SwitchResX

SwitchResXをダウンロードした。 結構いい。 dtptransit.design

Mac Book pro pc クーラー スタンド

少しファンの音がする。 CPUは、60度〜70度の間ぐらい。 ないよりは、いいと思う。 15.4から17インチ対応冷却台 SX-CL22LSVメディア: エレクトロニクス

Macで蓋を開けたまま、内臓モニタをオフにする。

オープンクラムシェルというらしい。 角度センサーがあるのか。 2019年 Macbookpro 16インチの新しい機種は、磁石だけでは、ダメかもしれない。 kimagure-blog.com itstrike.biz applech2.com applech2.com note.com

chrome remote desktopの文字が汚くなる。

support.google.com www.mattbutton.com

40インチ以上のモニターで、モニターアームを使ってみた

LG 43UD79-Bに、モニターアームを付けた。 モニタースタンドより、動かせるので、快適になった。 背面の画像 アームを一番上の位置にしても、 アームの下が、31cmしかない(真ん中の金具の下の位置から測定) 背面の画像 高さが、ギリギリで、ぶつかりそう。…

xml sort

github.com abc順になるんだ C:\Users\m_fuj\Desktop\ttx_bdf2>sortxml shnmk16_bdf2#1.E_B_D_T_.ttx <ttFont ttLibVersion="3.0"> <EBDT> <header version="2.0" /> <strikedata index="0"> <ebdt_bitmap_format_5 name="a"> </ebdt_bitmap_format_5></strikedata></header></ebdt></ttfont>

bdf2bmp bitmap bdf bmp

bdf2bmp www.vector.co.jp 実行例 > .\bdf2bmp bdf2bmp version 0.6 Usage: bdf2bmp [-option] input-bdf-file output-bmp-file Option: -sN spacing N pixels (default N=2) N value can range from 0 to 32 -cN specifying N colomns in grid (default N=3…

古いWindowsのシステムフォントのbitmap

https://k2snd.tumblr.com/post/74560201102/%E9%9B%91%E8%A8%98ms%E6%98%8E%E6%9C%9D%E3%81%AE%E3%83%93%E3%83%83%E3%83%88%E3%83%9E%E3%83%83%E3%83%97%E6%8A%9C%E3%81%8D%E7%BD%AE%E3%81%8D%E6%8F%9B%E3%81%88k2snd.tumblr.com mai-u.x0.com kirmav.blogs…

bdf2ttf

github.com make osx

bdf font

openlab.ring.gr.jp

VDMX LTSH truetype opentype fontlab5

typedrawers.com docs.microsoft.com monochrome outline github.com

ファイルに、ある内容を含まない行を抽出する

cat font.GlyphOrder.ttx | egrep -v "glyph|uni|u2|u1" > friendly_name.txt hacknote.jp

Word オプション

オプション>詳細設定>表示 読みやすさよりもレイアウトを優先して、文字の配置を最適化する オプション>詳細設定 半角文字と全角文字の文字幅を調整する。

spot base

% spot -t BASE truetype.ttf % spot -t BASE=5 truetype.ttf horizAxis.BaseTagList ideo romn horizAxis.BaseScriptList cyrl -36 < 0> . grek -36 < 0> . hani < 0> 36 spot [WARNING]: value of baseline differs by script . kana < 0> 36 . latn -36 <…

python round

>>> 0.005*65536 327.68 >>> round(0.005*65536) 328 for i in range(290,400): a=i/65536 print(f"{i}={a:<20}=>",round(a,3)) 290=0.004425048828125 => 0.004 291=0.0044403076171875 => 0.004 292=0.00445556640625 => 0.004 293=0.0044708251953125 => …

msgothic LTSH table

LTSHテーブルってなんだろう? LTSH typedrawers.com scripts.sil.org

uslastcharindex

github.com github.com OS/2 Table usLastCharIndex - Glyphs - Glyphs Forum