Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to set Font in VLDrawTextLayer
12-19-2011, 02:32 AM
Post: #3
RE: Trying to set Font in VLDrawTextLayer
Yep, Don't believe the actual properties are the issue, am getting them from a Font Dialogue and saving to variables that I have used many times in other software.

Everything below barfs..

FontName is an AnsiString;
FontColor is an int; // Not sure if this is right but not getting past the name stoped me and I'll deal with it later.
FontStyle is a TFontStyle;

VLDrawTextLayer1->Font->Name = FontName;
VLDrawTextLayer1->Font->Brush->Color = FontColor;
VLDrawTextLayer1->Font->Style = FontStyle;


(12-18-2011 11:42 PM)Dave Wrote:  Hi!

Do you have a font named 'String with good name' ? You should use quotes for the fontname like "Microsoft Sans Serif".

Regards,
Dave


On second thought you may have hit it..

I tried

VLDrawTextLayer1->Font->Name = "Microsoft Sans Serif";

And didn't receive the error.. I noticed the Font Dialogue returns
"MS Sans Serif" which is obviously different...

So guess the real question is how do I get VLDrawTextLayer1->Font to accept the properties returned from a Font Dialogue?
Quote this message in a reply
Post Reply 


Messages In This Thread
Trying to set Font in VLDrawTextLayer - BReeves - 12-18-2011, 11:16 PM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-18-2011, 11:42 PM
RE: Trying to set Font in VLDrawTextLayer - BReeves - 12-19-2011 02:32 AM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-19-2011, 07:11 AM
RE: Trying to set Font in VLDrawTextLayer - BReeves - 12-19-2011, 07:36 AM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-19-2011, 08:01 AM
RE: Trying to set Font in VLDrawTextLayer - BReeves - 12-19-2011, 08:51 PM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-20-2011, 10:19 AM
RE: Trying to set Font in VLDrawTextLayer - BReeves - 12-20-2011, 06:39 PM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-20-2011, 10:03 PM
RE: Trying to set Font in VLDrawTextLayer - BReeves - 12-21-2011, 12:43 AM
RE: Trying to set Font in VLDrawTextLayer - Dave - 12-20-2011, 10:39 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)