[go-nuts] Re: OpenGL Fonts

2017-04-21 Thread ajstarks
My OpenVG go wrapper uses TTF files: See: github.com/ajstarks/openvg On Wednesday, April 19, 2017 at 8:57:53 PM UTC-4, saif wrote: > > have found that you can do TTF to OpenVG. > but not sure how gl on go mobile will render slant lines for W. > > if you happen to know this is not the ideal way,

[go-nuts] Re: OpenGL Fonts

2017-04-20 Thread Egon
On Friday, 21 April 2017 02:21:55 UTC+3, saif wrote: > > image atlas will assume that all needed fonts will fit in "image.NewRGBA > (image.Rect(0, 0, 1024, 1024))", right? > Not really, there are two fixes when you fill up the image: 1. Create an new atlas for new glyphs (switching during renderi

[go-nuts] Re: OpenGL Fonts

2017-04-20 Thread saif
Found an antialiased, 2D vector drawing libray. This should work. github.com/memononen/nanovg Thanks, S -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-

[go-nuts] Re: OpenGL Fonts

2017-04-20 Thread saif
image atlas will assume that all needed fonts will fit in "image.NewRGBA (image.Rect(0, 0, 1024, 1024))", right? can i can call loadglyph(), when when a rune is needed? or should i call LoadGlyphs() with all possible runes during initialization? i think this will be slow, if i will initialize Loa

[go-nuts] Re: OpenGL Fonts

2017-04-20 Thread saif
thanks, didn't know about that. On Thursday, April 20, 2017 at 2:52:53 PM UTC+8, Egon wrote: > > On Tuesday, 18 April 2017 08:02:02 UTC+3, saif wrote: >> >> Hi, >> >> I like to ask for your suggestions. >> >> I found a nice project, and was trying to modify them but got stuck with >> fonts. >> (g

[go-nuts] Re: OpenGL Fonts

2017-04-19 Thread Egon
On Tuesday, 18 April 2017 08:02:02 UTC+3, saif wrote: > > Hi, > > I like to ask for your suggestions. > > I found a nice project, and was trying to modify them but got stuck with > fonts. > (github.com/dskinner/material) > > I like the fonts to be configurable, but when I tried to parse the fonts

[go-nuts] Re: OpenGL Fonts

2017-04-19 Thread saif
have found that you can do TTF to OpenVG. but not sure how gl on go mobile will render slant lines for W. if you happen to know this is not the ideal way, please suggest. thanks. On Tuesday, April 18, 2017 at 1:02:02 PM UTC+8, saif wrote: > > Hi, > > I like to ask for your suggestions. > > I foun