POV-Ray : Newsgroups : povray.general : Text flow, paragraphs, etc. : Re: Text flow, paragraphs, etc. Server Time
25 Apr 2024 21:27:30 EDT (-0400)
  Re: Text flow, paragraphs, etc.  
From: Le Forgeron
Date: 22 Jun 2019 12:42:48
Message: <5d0e5a88@news.povray.org>
Le 22/06/2019 à 11:06, Mike Horvath a écrit :
> On 6/22/2019 5:01 AM, Mike Horvath wrote:
>> On 6/22/2019 1:30 AM, Le_Forgeron wrote:
>>> You can probably make a macro for the same purpose when using a
>>> monospaced font, but doing such things for an usual font is going to be
>>> hard: you would need to create every pair of consecutive letters (to get
>>> the kerning), measure, put the letter in the current line and repeat.
>>>
>> Does "internal" keyword mean that the kerning has been pre-calculated?
>>
> 
> Sorry, I mean, does it represent the internal number of a font whose
> kerning has been pre-calculated?
> 

No, it is the same as for text{} object, an embedded font.

The kerning is a table, potentially large, indexed by pair of chars (the
one before and the one you want), in the TTF file (or embedded in internal).

it modify the current character metrics for its placement.
When a pair is not found, the metrics of the current character are
unmodified.

Typical kerning is for pair like "VA" & "AV" where the space between the
two letters should be different (smaller) from "AMV" and "VMA", from the
aesthetic point of view.

> 
> Michael


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.