Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2020
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.66 KB | None | 0 0
  1. --- firefox-52.9.0esr.orig/gfx/thebes/gfxFont.cpp 2020-06-03 21:55:12.303261510 +0300
  2. +++ firefox-52.9.0esr/gfx/thebes/gfxFont.cpp 2020-06-03 21:57:35.318890953 +0300
  3. @@ -3071,6 +3071,28 @@
  4.  
  5. return true;
  6. }
  7. +// Explicit instantiations of GetShapedWord, to avoid libxul link failure
  8. +template gfxShapedWord*
  9. +gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
  10. + const uint8_t *aText,
  11. + uint32_t aLength,
  12. + uint32_t aHash,
  13. + Script aRunScript,
  14. + bool aVertical,
  15. + int32_t aAppUnitsPerDevUnit,
  16. + uint32_t aFlags,
  17. + gfxTextPerfMetrics *aTextPerf);
  18. +
  19. +template gfxShapedWord*
  20. +gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
  21. + const char16_t *aText,
  22. + uint32_t aLength,
  23. + uint32_t aHash,
  24. + Script aRunScript,
  25. + bool aVertical,
  26. + int32_t aAppUnitsPerDevUnit,
  27. + uint32_t aFlags,
  28. + gfxTextPerfMetrics *aTextPerf);
  29.  
  30. // Explicit instantiations of SplitAndInitTextRun, to avoid libxul link failure
  31. template bool
  32. --- firefox-52.9.0esr.orig/gfx/thebes/gfxFont.h 2020-06-03 21:55:12.299928120 +0300
  33. +++ firefox-52.9.0esr/gfx/thebes/gfxFont.h 2020-06-03 21:58:04.522669252 +0300
  34. @@ -2171,6 +2171,72 @@
  35. static double CalcXScale(DrawTarget* aDrawTarget);
  36. };
  37.  
  38. +// Explicit declarations of SplitAndInitTextRun, to avoid libxul link failure
  39. +extern template bool
  40. +gfxFont::SplitAndInitTextRun(DrawTarget *aDrawTarget,
  41. + gfxTextRun *aTextRun,
  42. + const uint8_t *aString,
  43. + uint32_t aRunStart,
  44. + uint32_t aRunLength,
  45. + Script aRunScript,
  46. + bool aVertical);
  47. +
  48. +extern template bool
  49. +gfxFont::SplitAndInitTextRun(DrawTarget *aDrawTarget,
  50. + gfxTextRun *aTextRun,
  51. + const char16_t *aString,
  52. + uint32_t aRunStart,
  53. + uint32_t aRunLength,
  54. + Script aRunScript,
  55. + bool aVertical);
  56. +
  57. +// Explicit declarations of GetShapedWord, to avoid libxul link failure
  58. +extern template gfxShapedWord*
  59. +gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
  60. + const uint8_t *aText,
  61. + uint32_t aLength,
  62. + uint32_t aHash,
  63. + Script aRunScript,
  64. + bool aVertical,
  65. + int32_t aAppUnitsPerDevUnit,
  66. + uint32_t aFlags,
  67. + gfxTextPerfMetrics *aTextPerf);
  68. +
  69. +extern template gfxShapedWord*
  70. +gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
  71. + const char16_t *aText,
  72. + uint32_t aLength,
  73. + uint32_t aHash,
  74. + Script aRunScript,
  75. + bool aVertical,
  76. + int32_t aAppUnitsPerDevUnit,
  77. + uint32_t aFlags,
  78. + gfxTextPerfMetrics *aTextPerf);
  79. +
  80. +// Explicit declarations of InitFakeSmallCapsRun, to avoid libxul link failure
  81. +template<> bool
  82. +gfxFont::InitFakeSmallCapsRun(DrawTarget *aDrawTarget,
  83. + gfxTextRun *aTextRun,
  84. + const uint8_t *aText,
  85. + uint32_t aOffset,
  86. + uint32_t aLength,
  87. + uint8_t aMatchType,
  88. + uint16_t aOrientation,
  89. + Script aScript,
  90. + bool aSyntheticLower,
  91. + bool aSyntheticUpper);
  92. +template<> bool
  93. +gfxFont::InitFakeSmallCapsRun(DrawTarget *aDrawTarget,
  94. + gfxTextRun *aTextRun,
  95. + const char16_t *aText,
  96. + uint32_t aOffset,
  97. + uint32_t aLength,
  98. + uint8_t aMatchType,
  99. + uint16_t aOrientation,
  100. + Script aScript,
  101. + bool aSyntheticLower,
  102. + bool aSyntheticUpper);
  103. +
  104. // proportion of ascent used for x-height, if unable to read value from font
  105. #define DEFAULT_XHEIGHT_FACTOR 0.56f
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement