![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"tx2378" <tx2### [at] naranjaplatano com> wrote:
>
> utf8 escape sequence "\u00ed" is bad displayed.
>
> See this text sentence:
>
> text{ttf "times" "El aj\u00ed estaba picante" 0 0 scale 100}
>
> How can I resolve this issue?
So, I get a capital I with a left-tilted ' and a larger size than the rest of
the font, when I use Times Regular.
I'm going to guess that you need to switch to a different font with the proper
utf glyphs in the character set.
You may or may not need to add charset utf8 to your global settings
It's all very confusing.
https://news.povray.org/povray.advanced-users/thread/%3Cweb.60e50c29d0fecd301f9dae3025979125%40news.povray.org%3E/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"tx2378" <tx2### [at] naranjaplatano com> wrote:
>
> utf8 escape sequence "\u00ed" is bad displayed.
>
> See this text sentence:
>
> text{ttf "times" "El aj\u00ed estaba picante" 0 0 scale 100}
>
> How can I resolve this issue?
First of all, if you aren't already using global_settings { charset utf8 }, you
need to do so.
But it seems that *none* of the lowercase i glyphs with diacriticals display
properly, with most of the fonts I've tried. The newer generation Microsoft
fonts do work, though; try "cambria".
N.B. to jr: The fonts bundled with POV-Ray are all pure nonsense outside the
7-bit ASCII range. They are not a good test of anything.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Give "Abhaya Libre" a try, WITH charset utf8 in the global settings.
https://www.fontsquirrel.com/fonts/download/abhaya-libre
https://www.fontsquirrel.com/fonts/list/language/spanish
Post a reply to this message
Attachments:
Download 'utf_problem.png' (7 KB)
Preview of image 'utf_problem.png'
![utf_problem.png](/povray.programming/attachment/%3Cweb.63b075887ea93d731f9dae3025979125%40news.povray.org%3E/utf_problem.png?ttop=442068&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
hi,
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> ...
> N.B. to jr: The fonts bundled with POV-Ray are all pure nonsense outside the
> 7-bit ASCII range. They are not a good test of anything.
agree that the distribution fonts aren't "a good test". fwiw, two have some
usable/useful glyphs above 127, see attached.
regards, jr.
Post a reply to this message
Attachments:
Download 'povfonts.png' (104 KB)
Preview of image 'povfonts.png'
![povfonts.png](/povray.programming/attachment/%3Cweb.63b07db17ea93d73fbdc16836cde94f1%40news.povray.org%3E/povfonts.png?ttop=442068&preview=1)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> agree that the distribution fonts aren't "a good test". fwiw, two have some
> usable/useful glyphs above 127, see attached.
>
>
> regards, jr.
clipka said that they're "borked".
jr's table macro would be a great addition to the scripts that render all the
illustrations for the distribution - in the insert menu, etc.
Going through all of the .fon, .ttf, files and checking to see if there's a
corresponding jpg, png, bmp, and then rendering the ones that don't would be a
nice way to allow periodic updating of the font/include directory as new fonts
are added. (date, time, font name, full path) It's def a good tool to help
unravel the complex morass which are fonts and how the different versions of
POV-Ray interpret them with/without the utf8 keyword.
(That would also be a good addition: side-by-side comparison of the same font
with & without the utf8 keyword)
It's also a great way to show someone the contents of a typeface file before
they decide to hunt it down and download/install it on their system.
The chili is definitely spicy.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"jr" <cre### [at] gmail com> wrote:
>
> "Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> > ...
> > N.B. to jr: The fonts bundled with POV-Ray are all pure nonsense outside the
> > 7-bit ASCII range. They are not a good test of anything.
>
> agree that the distribution fonts aren't "a good test". fwiw, two have some
> usable/useful glyphs above 127, see attached.
They are usable, sure, but they do not correspond to standard character sets.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Cousin Ricky" <rickysttATyahooDOTcom> wrote:
> "tx2378" <tx2### [at] naranjaplatano com> wrote:
> >
> > utf8 escape sequence "\u00ed" is bad displayed.
> >
> > See this text sentence:
> >
> > text{ttf "times" "El aj\u00ed estaba picante" 0 0 scale 100}
> >
> > How can I resolve this issue?
>
> First of all, if you aren't already using global_settings { charset utf8 }, you
> need to do so.
>
> But it seems that *none* of the lowercase i glyphs with diacriticals display
> properly, with most of the fonts I've tried. The newer generation Microsoft
> fonts do work, though; try "cambria".
>
> N.B. to jr: The fonts bundled with POV-Ray are all pure nonsense outside the
> 7-bit ASCII range. They are not a good test of anything.
Hi;
reason, work with Times New Roman. Anyway issue is on POV Ray treatment of some
font families.
Try this on HTML:
<style>
@font-face {font-family:pot; src: url('file:///c:/windows/fonts/times.TTF')}
div {font-family:pot;font-size:300px}
</style>
<div>
And Then this, on POV Ray:
global_settings{charset utf8}
camera{location -1000*z look_at 0}
background{color rgb 1}
text{ttf "C:\windows\fonts\times.ttf" "Ah\u00ed" 0 0
scale 700
translate<-580,-200>}
On both I'm using times new roman from Windows 10. HTML works properly but on
POV Ray you'll see that diacritic is ahead from "i".
So I think issue is on POV Ray. I'm using (it's anoying work) a combination of
"i" without dot and a separate diacritic: \u0131 and \u02ca.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"tx2378" <tx2### [at] naranjaplatano com> wrote:
> reason, work with Times New Roman. Anyway issue is on POV Ray treatment of some
> font families.
> Try this on HTML:
> <style>
> @font-face {font-family:pot; src: url('file:///c:/windows/fonts/times.TTF')}
> div {font-family:pot;font-size:300px}
> </style>
> <div>
>
>
> And Then this, on POV Ray:
> global_settings{charset utf8}
> camera{location -1000*z look_at 0}
> background{color rgb 1}
> text{ttf "C:\windows\fonts\times.ttf" "Ah\u00ed" 0 0
> scale 700
> translate<-580,-200>}
>
> On both I'm using times new roman from Windows 10. HTML works properly but on
> POV Ray you'll see that diacritic is ahead from "i".
>
> So I think issue is on POV Ray. I'm using (it's anoying work) a combination of
> "i" without dot and a separate diacritic: \u0131 and \u02ca.
I mean, I'm certainly not saying you're wrong - but I would guess that with
POV-Ray's simplistic handling of all font-related stuff, it's probably going to
be the most true-to-file interpretation.
I seem to recall some issue with Windows falling back onto backup fonts for
missing glyphs in certain character sets.
Try taking a look at the font in the Windows Character Map, or better - a 3rd
party font file viewer like FontForge. Also maybe WordPad or Notepad.
Options:
clipka had mentioned being able to copy-paste a unicode character into the
POV-Ray text editor, and the parser would correctly identify and interpret that
without any other special treatment.
Cousin Ricky and I have manually converted the character definitions into Bezier
spline objects.
You could dissect the body of the i and the diacritical using masks / CSG and
define a custom made character as an object {}
Use just that character from another font that sufficiently resembles Times.
Use a browser or word processor and screenshot the correctly displayed text and
use that as an image_map billboard with a transparent background.
POV-Ray was really designed as a graphical raytracer, not as something that
handles a lot of text like a word processor.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Lars Rohwedder
Subject: Re: bad display of utf8 code u00ed letter i-accute in times new roman
Date: 2 Jan 2023 07:09:30
Message: <63b2c97a$1@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Am 31.12.22 um 16:46 schrieb tx2378:
> For times new roman (could be on another fonts too) the latin letter í (i-accute
> utf8 escape sequence "\u00ed" is bad displayed.
>
> See this text sentence:
>
> text{ttf "times" "El aj\u00ed estaba picante" 0 0 scale 100}
>
> How can I resolve this issue?
>
Have you set the correct charset in global settings?
See: https://www.povray.org/documentation/3.7.0/r3_4.html#r3_4_1_6
Lars R.
P.S.: https://www.povray.org/documentation/3.7.0/r3_3.html#r3_3_2_7_2
does not mention how characters beyond the BMP are handled at all.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
> So I think issue is on POV Ray. I'm using (it's anoying work) a combination of
> "i" without dot and a separate diacritic: \u0131 and \u02ca.
\u02ca ist the wrong character. It is a "spacing" letter, not a
"combining diacrticial mark" (which are intended to be combined with a
letter).
See:
https://en.wikipedia.org/wiki/Spacing_Modifier_Letters
vs.
https://en.wikipedia.org/wiki/Combining_Diacritical_Marks — where the
"combining acute accent" is at U+0301.
Lars R.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |