freetype icon indicating copy to clipboard operation
freetype copied to clipboard

The Freetype font rasterizer in the Go programming language.

Results 51 freetype issues
Sort by recently updated
recently updated
newest added

Describe the bug: When using the WorkSans-Black font certain cross-elements are corripted. The font shows gaps instead of a solid character, as per images below To Reproduce: Steps to reproduce...

``` It seems that the truetype package cannot load the OpenSans font. The font is compatible with other TTF viewers/editors.. so I wonder why I receive this error (from freetype.ParseFont()...

Priority-Medium
Type-Defect
auto-migrated

When I tried to get font's name with **truetype.Parse** I can't get the font's name / family name in english. It shows up as `?????` instead of its english name....

These are all extensively tested in context of GoGi project: https://github.com/goki/gi and fix a number of important issues to make it work. Let me know if there are any questions...

Go 1.17.6 Windows 11 amd64 github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0 I'm trying to use the library to draw some text in transparent background, but it doesn't matter what font I use, it fails...

I try to use the function DrawString draw it one by one and change the color , but it hard to know how much advanceWidth I should move,so I can't...

Some ttf files contain several sub-tables. For example, a ttf file may contain one unicodeEncodingBMPOnly table, one microsoftUCS2Encoding table, and one microsoftUCS4Encoding table. In this case, we choose microsoftUCS4Encoding as...

````javascript panic: runtime error: index out of range [104] with length 104 goroutine 319 [running]: github.com/golang/freetype/truetype.(*GlyphBuf).loadSimple(0x17e9590, 0x1583df0, 0x68, 0x75cb5, 0x1, 0x1583ce6, 0x0, 0x75dbf) C:/gowork/pkg/mod/github.com/golang/[email protected]/truetype/glyph.go:331 +0x590 github.com/golang/freetype/truetype.(*GlyphBuf).load(0x17e9590, 0x0, 0x10012, 0x0, 0x0)...

With this change, the computation of the scale factor becomes identical across the freetype and truetype packages, removing deviations in the font metrics that are derived from scale. Apply the...

I noticed there's sometimes a tiny discrepancy in font metrics as computed by `freetype.Context` and `truetype.NewFace`. As a reproducible example, using the Go Mono font of size 86.4 exactly, at...