[Fixed][1.7.3] Font cutoff issue

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

[Fixed][1.7.3] Font cutoff issue

Postby gradyfitz » Tue Jun 15, 2010 12:19 pm

Edit by tatt61880
This bug was fixed with v1.7.5. :thumbup:
This bug was seen only with v1.7.2 - v1.7.4.

-Tatt
----


Algodoo Full 1.7.3
O/S: Windows XP x64

In 1.7.3 there seems to be an issue using some characters in italics, these characters are cut off in the wrong place. The issue is sometimes present in some symbols out of italics, though are a result of scaling (and thus, changing the scale of text can make the cutoff better or worse).

Symbol and a - Cutoff Bug.phz
Symbol "☤" and character "a".
(36.39 KiB) Downloaded 39 times


This bug is present with most characters, even those such as "a" contained in the standard character set, though correct themselves when the scene is loaded, the erroneous behavior of these characters can be reproduced by cloning the box with the symbol on it, then in the text box of the cloned object, replace the symbol with the letter "a" - this results in a similar behavior being observed on the new object.

---
The character "f" also suffers from the issue, though not to such a visible extent.

This scene is for reporting italic font issue.phz
The character "f" is also affected by this bug.
(36.7 KiB) Downloaded 36 times


---

The difference between after the scene has been reloaded can be seen below.

Prior to loading (scene thumbnail)
After reloading saved scene

---

EDIT: It seems this can be somewhat seen in Notepad, though the issue is not present, a bit of insight into why it happens may be gained.
Bar overlap.PNG
| and symbol overlap.
(15.66 KiB) Not downloaded yet

You can see the text bar (the position marker) overlaps the symbol a bit - I'm not sure, this is similar in the "f" character.
Last edited by tatt61880 on Mon Sep 27, 2010 2:26 pm, edited 1 time in total.
Reason: Fixed!
Mechanisms: 18 Mechanisms.
Thyme: Tutorial - Variables/Commands List.
Thymechanic
gradyfitz
 
Posts: 174
Joined: Tue Sep 01, 2009 8:33 am
Location: Victoria, Australia

Re: [1.7.3] Font cutoff issue

Postby emilk » Mon Jun 21, 2010 5:33 pm

In your scene, the text-box is drawn not using the selected font - Verdana - but by the fallback font "MS PGothic" (see the console), this because the "☤" character cannot be rendered using Verdana.

So all italic a:s in "MS PGothic" suffers this problem. Not sure what the solution is, but I'll have a quick look (not a major bug, after all, but still quite irritating).

Paste this to reproduce:

Code: Select all
// FileVersion 9
// Phunlet created by Algodoo v1.7.3

FileInfo -> {
    title = "New scene";
    author = "emilk";
    version = 9
};
Scene.addBox {
    color := [0, 0, 1, 1.0];
    text := "<markup><i>a</i></markup>";
    textFont := "MS PGothic";
    textFontSize := 256.0;
    textScale := 2.1;
    entityID := 62;
    zDepth := 4.0;
    geomID := 64;
    pos := [0.0, 0.0];
    angle := 0.0;
    size := [2.0, 2.0]
}
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: [1.7.3] Font cutoff issue

Postby emilk » Tue Jun 22, 2010 11:24 am

I managed to fix it
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 6 guests