POV-Ray : Newsgroups : povray.beta-test.binaries : [std include] wrong kerning illustration Server Time
29 Apr 2024 11:20:05 EDT (-0400)
  [std include] wrong kerning illustration (Message 1 to 1 of 1)  
From:
Subject: [std include] wrong kerning illustration
Date: 27 Feb 2002 03:45:39
Message: <247p7u4r22rvpnn2pdfbv0snph8fevv5j3@4ax.com>
Image compares kerning of CircleText () macro, text{} object and my kerning()
macro posted some time ago in
http://news.povray.org/sa6q6u8ic6tt2ntql1kt4mm2fiebtf1pih%404ax.com
Note placing dots, commas and hidden "e" under "x" in "Text" word.
I suggest to use my method becouse it considers kerning with the same letters
as in original text instead of sometimes not defined "|". It also considers
kerning with pairs (and large sets) of chars. Any comments ?

Here is source to obtain attached image:

#local String="A,B.C,D,G... - ";
#local Font="Adks____.ttf";
#include "shapes.inc"
#include "kerning.inc" // macros posted some times ago to p.t.scene-files
union{
  object{
    Circle_Text(Font,concat(String,"CircleText()"),1,0,0,4,0,Align_Center,0)
    rotate z*90
  }
  text{ttf Font,concat(String,"text in POV"),0,0 translate <-5,1,0>}
  object{
    text_ttf(Font,concat(String,"kerning() by ABX"),0,0)
    translate <-5,-1,0>
  }
  translate z*10
  pigment{rgb 1}
}
light_source{-100*z 1}

ABX


Post a reply to this message


Attachments:
Download 'test.png' (27 KB)

Preview of image 'test.png'
test.png


 

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