Files
loongoffice/include
Khaled Hosny 92ffe57f6b Don’t shrink text from fallback fonts
This code is bogus in multiple ways:
* It scales text based on ascent or descent, but this makes no sense
  as those control line height and nothing else, if one is to scale two
  different fonts to “fit” together, cap or x height would be more
  appropriate. This results in some text being ridiculously shrunk.
* Not only that, but it is comparing apples to oranges; original font
  ascent/descent with the bounding box of the fallback glyphs, which
  results in different scale ratios depending on the shape of the glyphs
  at hand, which leads to all sorts of funny and irregular text.
* Even worse, the PDF export is completely broken in this case; it uses
  the scaled down glyph widths but the unscaled font size, resulting in
  cramped unreadable text.

Change-Id: Iaa6117ecfdad8388887d9a03b538e7327544ad5e
Reviewed-on: https://gerrit.libreoffice.org/4293
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-07-01 12:23:04 +00:00
..
2013-06-30 14:52:30 +02:00
2013-05-29 15:03:01 +02:00
2013-06-30 14:52:30 +02:00
2013-06-30 13:22:18 +02:00
2013-06-30 14:52:30 +02:00
2013-06-30 14:52:30 +02:00
2013-06-30 04:58:49 +00:00
2013-06-30 13:22:18 +02:00
2013-07-01 13:15:10 +01:00
2013-06-30 13:22:19 +02:00
2013-06-28 11:49:28 +00:00
2013-06-30 04:58:49 +00:00
2013-06-07 16:43:36 +02:00
2013-06-07 16:26:59 +02:00
2013-06-28 16:40:29 +02:00
2013-05-16 09:25:53 +02:00
2013-06-03 11:41:36 +01:00
2013-06-03 11:41:36 +01:00
2013-06-03 11:41:36 +01:00
2013-06-03 11:41:36 +01:00
2013-06-03 11:41:36 +01:00