Darius Blaszyk wrote:
On Tue, Sep 25, 2018 at 5:21 PM Dennis <de...@avidsoft.com.hk <mailto:de...@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.

Dennis
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to