OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../wine/max-font-size.patch.disabled
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. In some situations there seem to be problems how to scale a font. A maximal
  17. size of 1000 pixels is assumed which, however, will result in a vast system
  18. load if an application constantly hits this issues. To significantly decrease
  19. CPU and memory utilization for those applications (such as the Finereader OCR
  20. engine) a maximal size of 100 pixels is appropriate.
  21. Please note that this is _NOT_ a bug-fix, and just lowers an articifial
  22. limit that already is a work around.
  23. - Rene Rebe <rene@exactcode.de>
  24. --- wine-20050524/dlls/x11drv/xfont.c.orig 2005-07-20 18:54:11.000000000 +0200
  25. +++ wine-20050524/dlls/x11drv/xfont.c 2005-07-20 18:54:59.000000000 +0200
  26. @@ -59,7 +59,7 @@
  27. #define DEF_POINT_SIZE 8 /* CreateFont(0 .. ) gets this */
  28. #define DEF_SCALABLE_HEIGHT 100 /* pixels */
  29. #define MIN_FONT_SIZE 2 /* Min size in pixels */
  30. -#define MAX_FONT_SIZE 1000 /* Max size in pixels */
  31. +#define MAX_FONT_SIZE 100 /* Max size in pixels */
  32. #define REMOVE_SUBSETS 1
  33. #define UNMARK_SUBSETS 0