Don't scale text plots in front end (RISC OS).
svn path=/trunk/netsurf/; revision=11937
This commit is contained in:
parent
cebac17d4d
commit
5412d7c1b0
|
@ -385,12 +385,11 @@ bool nsfont_split(const plot_font_style_t *fstyle,
|
||||||
* \param length length of string
|
* \param length length of string
|
||||||
* \param x x coordinate
|
* \param x x coordinate
|
||||||
* \param y y coordinate
|
* \param y y coordinate
|
||||||
* \param scale scale to apply to font size
|
|
||||||
* \return true on success, false on error and error reported
|
* \return true on success, false on error and error reported
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool nsfont_paint(const plot_font_style_t *fstyle, const char *string,
|
bool nsfont_paint(const plot_font_style_t *fstyle, const char *string,
|
||||||
size_t length, int x, int y, float scale)
|
size_t length, int x, int y)
|
||||||
{
|
{
|
||||||
const char *font_family;
|
const char *font_family;
|
||||||
unsigned int font_size;
|
unsigned int font_size;
|
||||||
|
@ -401,7 +400,7 @@ bool nsfont_paint(const plot_font_style_t *fstyle, const char *string,
|
||||||
if (font_size == 0)
|
if (font_size == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
code = rufl_paint(font_family, font_style, font_size * scale,
|
code = rufl_paint(font_family, font_style, font_size,
|
||||||
string, length, x, y,
|
string, length, x, y,
|
||||||
print_active ? 0 : rufl_BLEND_FONT);
|
print_active ? 0 : rufl_BLEND_FONT);
|
||||||
if (code != rufl_OK) {
|
if (code != rufl_OK) {
|
||||||
|
|
|
@ -407,8 +407,7 @@ bool ro_plot_text(int x, int y, const char *text, size_t length,
|
||||||
|
|
||||||
return nsfont_paint(fstyle, text, length,
|
return nsfont_paint(fstyle, text, length,
|
||||||
ro_plot_origin_x + x * 2,
|
ro_plot_origin_x + x * 2,
|
||||||
ro_plot_origin_y - y * 2,
|
ro_plot_origin_y - y * 2);
|
||||||
ro_plot_scale);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue