Re: Tfont
- From: "anthony" <ajh@xxxxxxxxxxx>
- Date: Sat, 27 Aug 2005 06:31:00 +1200
I like the Idea of string it in the registry, but I have no idea how to do
that, but it sure sounds a great idea. Thank you for your time
"Maarten Wiltink" <maarten@xxxxxxxxxxxxxxxxxx> wrote in message
news:430eca8a$0$11068$e4fe514c@xxxxxxxxxxxxxxxxx
> "anthony" <ajh@xxxxxxxxxxx> wrote in message
> news:KbsPe.5888$iM2.579788@xxxxxxxxxxxxxxxxxx
>
> > is it possible to turn a tFont into a string so I can save what the
> > font of a certain component is
> >
> > I am want to store the fonts and background colors, so that when the
> > appication restarts it will load the attributes for me.
>
> Where are you storing it? I write things to the Registry; my code
> uses a new key for a font and puts name, size, colour, bold, italic,
> underline, and strikeout in a value each. If you're bent on having a
> single string you could encode it as XML or CSS or any format of your
> own devising. (CSS would be rather nice, I think.)
>
> Windows itself saves font information in the Registry as binary dumps
> of TLogFontW records. Forty lines of Pascal to decode it or possibly
> (I've not tried very hard) a single CreateFontIndirect call.
>
> It's _always_ a good time to be extending your standard library.
>
> Groetjes,
> Maarten Wiltink
>
>
.
- Follow-Ups:
- Re: Tfont
- From: Maarten Wiltink
- Re: Tfont
- Prev by Date: Re: Week Number to Calendar
- Next by Date: Re: Tfont
- Previous by thread: Re: Tfont
- Next by thread: Re: Tfont
- Index(es):
Relevant Pages
|