Adventure Game Studio Official

User reported issues for officially released versions of AGS

Bug Issue: Unaligned outline font

Pages: [1]

fernewelten

  • AGSer
  • Posts: 64
« on: 18 May 2018, 17:14 »
Hello,
I'm currently using AGS 3.4.1 on a (German) Windows 10 system.

As far as I can ascertain, all the letters in the fonts below have exactly the same glyph width in one font as in the respective other font at the corresponding position. Thus, they should be suitable to be used as Speech font / Speech Outline font.

I'm importing them both at 20 pt, overwriting font 1 and font 2, respectively.

When using Character.Say(), the outline font text is printed in a slightly different size than the speech font, so the outline comes out misaligned the longer the spoken lines are.

I was expecting the alignment to be exact.

Speech font: http://www.loquimur-online.de/ags/bd1.ttf
Parameters:


Outline font: http://www.loquimur-online.de/ags/bd2.ttf
Parameters:


Screenshot of misalignment: http://www.loquimur-online.de/ags/scrn-misalignment.png
« Last Edit: 21 May 2018, 20:52 by fernewelten »

Crimson Wizard

  • AGSer
  • Posts: 8,638
« Reply #1 on: 21 May 2018, 12:18 »
Are you sure you posted correct fonts? The links to main and outline fonts are identical.

UPD:
Ok, I tried different link: http://www.loquimur-online.de/ags/bd2.ttf, and it worked. So that is probably outline font?
With that I was able to reproduce same effect.

BTW, did you try automatic outline, or it does not work well for you?
« Last Edit: 21 May 2018, 12:22 by Crimson Wizard »

fernewelten

  • AGSer
  • Posts: 64
« Reply #2 on: 21 May 2018, 20:47 »
Hi,

Yes, I did try automatic outline first, and that's what I use as a workaround right now.  But I'm doing a high-res game (800x600), and a one pixel outline doesn't really make the text stand out enough on a rough background. To wit: 


The text in front of the door is perfectly legible, but the text in front of the concrete wall is nearly illegible IMO. It's worse in a windowed display than on fullscreen. I was hoping to improve the situation with an outline font, then I found out that I couldn't make it work.

A configurable thickness for automatic outlining might be a better solution, anyway. The code seems to know how to provide a one pixel outline, so making this thicker might be as simple as calling this code chunk several times in a row.




fernewelten

  • AGSer
  • Posts: 64
« Reply #3 on: 21 May 2018, 20:52 »
Ok, I tried different link: http://www.loquimur-online.de/ags/bd2.ttf, and it worked.

Thanks, I've corrected the typo in my original posting now.

Pages: [1]

Issue Details

  • Reported
    18 May 2018, 17:14
  • Updated
    21 May 2018, 20:52
  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    AGS 3.4.1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Fonts

Tags



Powered by: SMF Project Tools 0.5.4 © Niko Pahajoki 2007-2011