Re: Space bewteen lines / font width



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
.



Relevant Pages

  • Why not use forms ParentFont for Vista?
    ... I appreciate the discussion in this group and the articles about getting a Delphi application to work good on Vista. ... In Delphi-5 the default form font is MS Sans Serif and in Delphi-2005 the default form font is Tahoma. ... I initially thought of using some code to set the form's font to the Windows system font at runtime, but then I tried just setting all of the form's ParentFont to true and that seemed to work good and without any code. ... I searched all of the DFM files and made sure that all controls had ParentFont true except when it was necessary to change a control's font size or attribute. ...
    (borland.public.delphi.non-technical)
  • Re: Space bewteen lines / font width
    ... With our Delphi program we are printing letters and invoices. ... Lately our marketing agency created a new housetyle for us, ... The marketing agency used a Arial font of the ...
    (alt.comp.lang.borland-delphi)
  • Re: Turkish character set
    ... Is there someway to allow different character sets? ... on the selected font you're using. ... When I copy and paste them to Delphi, the "different" characters are replaced with "?". ...
    (alt.comp.lang.borland-delphi)
  • Re: Turkish character set
    ... Is there someway to allow different character sets? ... on the selected font you're using. ... When I copy and paste them to Delphi, ...
    (alt.comp.lang.borland-delphi)
  • Re: Any good screen resolution components?
    ... Although it is a bitmapped font, it is still available in a range of sizes, ... so Delphi has enough size choices. ... I always run my PC at 96 DPI and do all my Delphi work at that resolution. ... If you change resolutions and reopen a project in Delphi, ...
    (borland.public.delphi.non-technical)