{"url":"https://randommemory.hatenablog.com/entry/2020/06/20/150039","type":"rich","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2020%2F06%2F20%2F150039\" title=\"FreeType\u3067\u6587\u5b57\u3092\u66f8\u304f(4) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"FreeType\u3067\u6587\u5b57\u3092\u66f8\u304f(3) - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\u306e\u7d9a\u304d\u3002 def save_image(gid): face = freetype.Face(font_path) face.set_char_size(224*64) W, H = 224, 224 Z = np.zeros( (H, W), dtype=np.ubyte ) face.load_glyph(gid) bitmap = face.glyph.bitmap x, y = face.glyph.bitmap_left, face.glyph.bitmap_top w, h, p = bitmap.width, bitmap.r\u2026","categories":["font","Python"],"title":"FreeType\u3067\u6587\u5b57\u3092\u66f8\u304f(4)","width":"100%","blog_url":"https://randommemory.hatenablog.com/","author_name":"derwind","image_url":null,"provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/derwind/","version":"1.0","published":"2020-06-20 15:00:39"}