summaryrefslogtreecommitdiff
path: root/amiga/font.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-03-08 18:49:11 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-03-08 18:49:11 +0000
commite073f1c542548317165da0610fe28a8330842452 (patch)
tree7112144020a621456fc895cfa03ee08ff7638423 /amiga/font.c
parenta183951c233483d33c7490b8a27ab48b5ba4768a (diff)
downloadnetsurf-e073f1c542548317165da0610fe28a8330842452.tar.gz
netsurf-e073f1c542548317165da0610fe28a8330842452.tar.bz2
Don't scale text plots in front end (Amiga).
svn path=/trunk/netsurf/; revision=11939
Diffstat (limited to 'amiga/font.c')
-rw-r--r--amiga/font.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/font.c b/amiga/font.c
index f8eaa7f1f..c816ce04a 100644
--- a/amiga/font.c
+++ b/amiga/font.c
@@ -106,7 +106,7 @@ bool nsfont_position_in_string(const plot_font_style_t *fstyle,
uint8 *utf8;
uint32 co = 0;
int utf16charlen;
- ULONG emwidth = (ULONG)((fstyle->size / FONT_SIZE_SCALE) * glob->scale);
+ ULONG emwidth = (ULONG)(fstyle->size / FONT_SIZE_SCALE);
int32 tempx;
len = utf8_bounded_length(string, length);
@@ -215,7 +215,7 @@ bool nsfont_split(const plot_font_style_t *fstyle,
size_t len;
int utf8len, utf8clen = 0;
int32 tempx = 0;
- ULONG emwidth = (ULONG)((fstyle->size / FONT_SIZE_SCALE) * glob->scale);
+ ULONG emwidth = (ULONG)(fstyle->size / FONT_SIZE_SCALE);
len = utf8_bounded_length(string, length);
if(utf8_to_enc((char *)string,"UTF-16",length,(char **)&utf16) != UTF8_CONVERT_OK) return false;
@@ -329,7 +329,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL
}
/* Scale to 16.16 fixed point */
- ysize = fstyle->size * ((1 << 16) / FONT_SIZE_SCALE) * glob->scale;
+ ysize = fstyle->size * ((1 << 16) / FONT_SIZE_SCALE);
if(ESetInfo(&ofont->olf_EEngine,
OT_DeviceDPI,(72<<16) | 72,
@@ -406,7 +406,7 @@ ULONG ami_unicode_text(struct RastPort *rp,const char *string,ULONG length,const
uint32 x=0;
uint8 co = 0;
int32 tempx = 0;
- ULONG emwidth = (ULONG)((fstyle->size / FONT_SIZE_SCALE) * glob->scale);
+ ULONG emwidth = (ULONG)(fstyle->size / FONT_SIZE_SCALE);
if(!string || string[0]=='\0') return 0;
if(!length) return 0;