Re: Space bewteen lines / font width
- From: "alanglloyd@xxxxxxx" <alanglloyd@xxxxxxx>
- Date: Wed, 30 Jan 2008 00:52:31 -0800 (PST)
On 29 Jan, 11:57, Ronald <r.e.vanijpe...@xxxxxxxxx> wrote:
Dear,
With our Delphi program we are printing letters and invoices.
Lately our marketing agency created a new housetyle for us, new logo
and new font type etc.
So, I am trying to change my Delphi letters / reports.
There is 1 problem. The marketing agency used a Arial font of the
seize of 10. But, they used a different width �and else the distance
between the lines is different than standard.
In Microsoft Word it is no problem to set those settings but in Delphi
I have no idea how I can set it. In a RichText box I see no properties
and in the report generator neither.
Does anyone has a idea what to do? Is there a way to make those
settings in Delphi? Are there external components which have those
capacities? Or Do I have to use MS Word? And how???
As far as interchar spacing is concerned one could use the Windows API
function calls of GetTextCharacterExtra() & SetTextCharacterExtra().
But to do that you have to be familiar with drawing to windows device
contexts (use the Delphi TCanvas.Handle) and possibly Windows GDI
operation calls - DrawText() etc & logical fonts. All those you can
discover by searching the MSDN (Microsoft Developers Network) on the
web, or pay for the lowest level library subscription which gets you
MSDN on a DVD (extremely well worth while for a Win32 developer using
any language).
I could not immediately see a simple function to change the interline
spacing, though.
In my programs producing formatted text I usually place characters &
text on the paper myself using the Delphi Printer instance & its
Canvas.TextOut method. Using that, one can place characters exactly
where you want them on any printer. But it's tedious coding it, and
needs careful design of the low-level Delphi functions you write so
that, once you have written the low-level code, everything becomes
much easier. I usually get the printer page characteristics and them
work in millimetres on the page.
You've got to watch these arty characters, they often live in an
unreal world. BUT you should be able (for money) to get them to make a
TruType font which has the appropriate spacing built in. So that you
just use that installed font. If the arty-boys are in touch with real-
world computer usage they should be able to prodcuce such a font for
less than a few hundred pounds. Alternatively there are font editors
on the market which for a similar amount of money would enable you to
modify a font yourself.
Alan Lloyd
.
- References:
- Space bewteen lines / font width
- From: Ronald
- Space bewteen lines / font width
- Prev by Date: Some like it horizontal, some like it vertical :)
- Next by Date: Mouse_Event to send click to the Windows screen ?
- Previous by thread: Re: Space bewteen lines / font width
- Next by thread: Re: Is there something (on www) that explains the differences in Delphi versions??
- Index(es):
Relevant Pages
|