Hi Szymon,
> So, using options *-dTextAlphaBits=2 -dGraphicsAlphaBits=2*
> When I switched off the options -dTextAlphaBits=4 -dGraphicsAlphaBits=4
> This leads to fonts are drawn only with 1 color.
>
> was better, I got slightly differential colors (in gray scale) in fonts.You seem to mean that you need smoother letterings (numbers and
alphabet characters). Is that right?
In that case, I can think of three solutions:
1) Search the Ferret mailing list archive for "antialias". I
remember somebody posted a script that alleviate the problem
of the thin lines (by thickening border lines?).
2) Edit the PostScript file with a PostScript editor such as Inkscape
and Illustrator to replace the letterings with real text(*footnote);
and convert the resultant PostScript file with TextAlphaBits but
without GraphicsAlphaBits . In that way, you'll get smoother
text without introducing aliasing into the graphics part.
3) Thicken the fonts in Ferret. In that way, they look fine (to me)
without smoothing by AlphaBits (antialiasing).
I normally do (3).
Regards,
Ryo
----
(*footnote) Ferret's fonts are sets of lines, of not text characters.
Therefore, they are treat as (and they actually are) line graphics.
>
> Thank you very much,
>
> Kind regards,
> Szymon Roziewski
>
>
> On 29 August 2012 00:05, Ryo Furue <furue@xxxxxxxxxx> wrote:
>
>> Dear Szymon,
>>
>> > *gs -q -dNOPAUSE -dBATCH -sDEVICE=pnmraw -r150x150 -dTextAlphaBits=4
>> > -dGraphicsAlphaBits=4 -sOutputFile=- polycstline.ps | pnmflip -r90 |
>> > convert +antialias - polycstline.png*
>> >
>> > I changed line thickness and now I am quite happy about this wthat I
>> have.
>> >
>> > Mainly, I have this bluish lines on the plot and no idea of how I can get
>> > rid off it.
>>
>> Those thin lines are due to antialiasing. In the above, you first
>> convert the PostScript file to a raster image using gs and finally
>> convert it to another raster format, PNG. I'm not familiar with
>> details of gs, but it must be performing the conversion with
>> antialising. . . . Hmm, but it seems GraphicsAlphaBits and
>> TextAlphaBits are the antialising operations here. What happens if
>> you don't use those options?
>>
>> (You switch off antialiasing for your "convert" command, but it's too
>> late.)
>>
>> Better still, the "convert" command can manipulate your image in a
>> lot of ways and you may not need to use "gs" in the first place:
>>
>> convert -density 150 -rotate 90 +antialias polycstline.ps polycstline.png
>>
>> or something along the lines.
>>
>> Regards,
>> Ryo
>>
>
>
>
> --
> Z wyrazami szacunku,
> Szymon Roziewski
Attachment:
file_name.ps
Description: PostScript document
Attachment:
file_name.png
Description: PNG image