[fpc-pascal] Announcement GLPT

Dennis Poon dennis at avidsoft.com.hk
Wed Sep 26 11:21:44 CEST 2018

Darius Blaszyk wrote:
> On Tue, Sep 25, 2018 at 5:21 PM Dennis <dec12 at avidsoft.com.hk 
> <mailto:dec12 at avidsoft.com.hk>> wrote:
>     I tried it but found that drawing text in OpenGL seems to be
>     problematic.
>     Is there anyway to draw text using windows' existing font? Or is
>     there a
>     library for nicer vector based font?
> There is a unit called uglyfont.pas included in Lazarus. I ported it 
> some time ago for an imgui implementation example. This is a simple 
> vector font. You can also implement a freetype font fairly easy. In 
> fact I can share some code. Just search for NeHe and you will find it 
> online as well.
> Although GLUT came with standard fonts I am not inclined to include a 
> font in GLPT soon. Same for menu, UI and other drawing stuff. This 
> should be handled one level higher up.
I am writing a Chinese program and the Chinese character set is huge 
with many thousand of characters, and each character has many strokes. I 
think the work required is too daunting and the improvement in speed is 
not that much for my simple chart plotting use.

I will stay with Lazarus UI for the moment. In future, I might explore 
fpGUI instead.


More information about the fpc-pascal mailing list