Welcome, Guest
Username: Password: Remember me
Components and Libraries for Graphics 3D Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

pl_GLScene "missings" 13 years 3 months ago #1211

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
Hello everyone!
Let's discuss here what fixes all of us need in pl_glscene package.
I'll start with this:

How do I could use bitmap fonts in Linux 32 bit (ubuntu maverick)?
A simple project stops with AV when I tried to add range at runtime to TGLBitmapFont. It says "not implemented" and drops me here:
function TBitmapFontRanges.Add(const startASCII, stopASCII: AnsiChar): TBitmapFontRange;
begin
  Result := Add(CharToWideChar(startASCII), CharToWideChar(stopASCII));
end;
But the thing is that CharToWideChar function is not implemented for linux. Is there's another way to add ranges? (at designtime I couldn't add it either).

Best regards!
コンソールマニアック

Please Log in or Create an account to join the conversation.

Re: pl_GLScene "missings" 13 years 3 months ago #1212

  • 4aiman
  • 4aiman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Comix creator
  • Posts: 227
  • Thank you received: 12
I'll answer for myself :-[
Here is how bitmaps should be loaded into fotn component:
GLBitmapFont1.Ranges.Add;
        GLBitmapFont1.Ranges.Items[0].StartASCII:=#32;
        GLBitmapFont1.Ranges.Items[0].StopASCII:=#255;
        GLBitmapFont1.Ranges.Items[0].StartGlyphIdx:=0;
So, at first GLScenevVewer must be created at run-time, and now I found the same should be done with fonts. We're going to do it all in run time ;)

Anyway, I must report that in 2.1 we have broken TGLBitmap font even under Win XP. I've project WITH normal font rendering (created in 1.6) and just rebuild it. As a result - all russian symbols are gone from the screen...
コンソールマニアック

Please Log in or Create an account to join the conversation.

  • Page:
  • 1