Author Topic: Choice for aliasing antialiasing of fonts  (Read 3002 times)

Offline ntzanos

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
Choice for aliasing antialiasing of fonts
« on: November 05, 2009, 11:46:42 AM »
Hello,

It would be nice for the editor to allow the user to choose aliasing per font, as there are many fonts which look better with antialiasing turned off. An example of such functionality can be found in Ultraedit, e Text editor, Sublime text or jEdit.

Regards,

Nick

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2206
  • Karma: +37/-3
    • HippoEDIT
Re: Choice for aliasing antialiasing of fonts
« Reply #1 on: November 05, 2009, 12:21:11 PM »
Hi Nick,

welcome on forum.

It is already possible but just not presented in UI interface. Normally HippoEDIT use current antialiasing settings from Windows.
You can change this manually in xml configuration.
Here is an example from def_spec.xml:
Code: [Select]
    <FONTS>
      <Font only_monospaced="false" size="10" face_name="Courier New" quality="0" charset="1"/>
    </FONTS>
where attribute quality controls anti aliasing settings for selected font:
can be (directly correlate to OS values for font lfQuality from MSDN):

DEFAULT_QUALITY0
DRAFT_QUALITY1
PROOF_QUALITY2
NONANTIALIASED_QUALITY3
ANTIALIASED_QUALITY4
CLEARTYPE_QUALITY5
CLEARTYPE_NATURAL_QUALITY6

when changing, be aware about inheritance.
Do not change in spec files (works, but can be overwritten during update) but in user files.
Corresponding entry in user file would be created if you change default font settings for this syntax.

Best regards,
Alex.