Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#18 GLBitmapFont

closed
nobody
None
5
2010-07-05
2010-07-04
Sandor Domokos
No

I think unnecessary check the hSpace and VSpace value greater to 0.
If not check (enabled negative values) we can displaying characters in neared position.
Or bigger value can give the funny effect, for example reversed display text.

(maybe remove commented lines)

// SetHSpace
//
procedure TGLCustomBitmapFont.SetHSpace(const val : Integer);
begin
// if val>0 then
FHSpace:=val;
// else FHSpace:=0;
InvalidateUsers;
end;

// SetVSpace
//
procedure TGLCustomBitmapFont.SetVSpace(const val : Integer);
begin
// if val>0 then
FVSpace:=val;
// else FVSpace:=0;
InvalidateUsers;
end;

Discussion

  • YarUnderoaker
    YarUnderoaker
    2010-07-04

    Were you doing any experiments, it normally works? Or is this theory?

     
  • Sandor Domokos
    Sandor Domokos
    2010-07-05

    demo

     
    Attachments
  • Sandor Domokos
    Sandor Domokos
    2010-07-05

    Not only theory, it's working. See the attachment. :)

     
  • YarUnderoaker
    YarUnderoaker
    2010-07-05

    Ok, thanks. Proposal accepted and code commited.

     
  • YarUnderoaker
    YarUnderoaker
    2010-07-05

    • status: open --> closed