inkyblackness / imgui-go

Go wrapper library for "Dear ImGui" (https://github.com/ocornut/imgui)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Font.AddFontFromFileBytes method - feature request

gucio321 opened this issue · comments

commented

Hi there,
as of go 1.16, there is //go:embed directive available.
But it allows only for saving file as a byte slice. Imgui currently has only AddFontFrom...(filepath). So if I want to connect go-embed and imgui font loader I need some method (like AddFontFromFileBytes(data []byte)) to use go-embeded file.

commented

oh, imgui.AddFontFromMemoryTTF is there, sorry