bugGNU TeXmacs - Bugs: bug #37472, Big font size typesetting is broken


You are not allowed to post comments on this tracker with your current authentication level.

bug #37472: Big font size typesetting is broken

Submitted by:  Francois Poulain <fpoulain>
Submitted on:  Sun 30 Sep 2012 12:18:25 PM UTC  
Category: TypesetterPriority: 3 - Low
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: svn7190Release: None
Fixed Release: NoneFixed Release: 

(Jump to the original submission Jump to the original submission)

Wed 01 Mar 2017 07:41:51 PM UTC, comment #7:

The original problem is fixed and the issue in the last comment (Stix at size 300) does not crash texmacs any longer. I understand that there may remain some issues with wierd tex font sizes, nevertheless I think it's reasonable to close this.

Philippe Joyez <pjoyez>
Project Member
Tue 03 Dec 2013 12:42:28 PM UTC, comment #6:

I agree with forgetting TeX's fonts problems.

Also, another problem occurs for big size. Try e.g. with a font styx of size 300 : TeXmacs crashes. I didn't investigated the problem, but it might be due to an int overflow.

So I reopen the bug, the crash should be avoided.

Francois Poulain <fpoulain>
Project Member
Tue 03 Dec 2013 11:11:35 AM UTC, comment #5:

In the present state, there is not much that we can do about this bug, except hoping that people don't use strange font sizes. In the feature, now that Max completed the native Pdf rendering engine, we should slowly move towards exclusive use of truetype and opentype fonts. At a certain point, this bug should disappear automatically.

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Mon 28 Oct 2013 08:32:41 AM UTC, comment #4:

arf ...

Francois Poulain <fpoulain>
Project Member
Sat 26 Oct 2013 09:56:20 PM UTC, comment #3:

For certain LaTeX fonts, it is possible to have non integer font sizes, by multiplying the font size by 100. For instance, larm10 would be equivalent to larm1000 and larm1050 would stand for a 10.5 point larm font. One should be careful to fix bugs concerning font sizes >= 100 at the right place because of this...

Joris van der Hoeven <vdhoeven>
Project AdministratorIn charge of this item.
Sat 19 Oct 2013 12:54:00 PM UTC, comment #2:

See the attached file fixbug37472.patch for a "solution". Joris should check this and see what can be done.

There are btw some occurrences of seemingly arbitrary values in the same file, like

and a few more. They look a bit suspicious. What if I am editing some giant poster?

(file #29419)

Miguel de Benito <mdbenito>
Project Member
Thu 15 Aug 2013 01:07:50 PM UTC, comment #1:

Inside Metafont/load_tex.cpp, try_tfm(), the following lines

apply a factor to the second field in the tex font metrics header. This is the design_size, retrieved later for computation of the extents, among others. The code in this function is mysterious:

Bypassing the call to mag() at the function above the issue is solved:

However I wonder what the purpose of such a computation might be. The function is used at several other places, so perhaps we ought to fix it instead of not use it?

Miguel de Benito <mdbenito>
Project Member
Sun 30 Sep 2012 12:18:25 PM UTC, original submission:

This code works : <with|font-base-size|99|<TeXmacs>>
This code is badly rendered : <with|font-base-size|100|<TeXmacs>>
The horizontal shift between characters is bad when the font size go too big.

Francois Poulain <fpoulain>
Project Member


Attached Files
file #29419:  fixbug37472.patch added by mdbenito (634B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by pjoyez (Posted a comment)
  • -unavailable- added by vdhoeven (Posted a comment)
  • -unavailable- added by mdbenito (Posted a comment)
  • -unavailable- added by fpoulain (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 01 Mar 2017 07:41:51 PM UTCpjoyezStatusConfirmed=>Fixed
    Tue 03 Dec 2013 12:42:28 PM UTCfpoulainStatusPostponed=>Confirmed
    Tue 03 Dec 2013 11:11:35 AM UTCvdhoevenPriority5 - Normal=>3 - Low
      StatusIn Progress=>Postponed
    Fri 29 Nov 2013 06:14:30 PM UTCvdhoevenAssigned tomdbenito=>vdhoeven
    Sat 19 Oct 2013 12:54:00 PM UTCmdbenitoAttached File-=>Added fixbug37472.patch, #29419
    Thu 15 Aug 2013 01:07:50 PM UTCmdbenitoItem GroupNone=>Error
      StatusNone=>In Progress
      Assigned toNone=>mdbenito

    Back to the top

    Powered by Savane 3.1-cleanup1