summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'desktop')
-rw-r--r--desktop/save_pdf/font_haru.h1
-rw-r--r--desktop/save_pdf/pdf_plotters.c11
2 files changed, 4 insertions, 8 deletions
diff --git a/desktop/save_pdf/font_haru.h b/desktop/save_pdf/font_haru.h
index eca9855e6..a0d0c5ef7 100644
--- a/desktop/save_pdf/font_haru.h
+++ b/desktop/save_pdf/font_haru.h
@@ -31,6 +31,5 @@ bool haru_nsfont_apply_style(const struct css_style *style,
HPDF_Font *font);
extern const struct font_functions haru_nsfont;
-extern float pdf_scale;
#endif
diff --git a/desktop/save_pdf/pdf_plotters.c b/desktop/save_pdf/pdf_plotters.c
index 5623416dc..6457a7378 100644
--- a/desktop/save_pdf/pdf_plotters.c
+++ b/desktop/save_pdf/pdf_plotters.c
@@ -124,7 +124,7 @@ const struct printer pdf_printer = {
pdf_end
};
-float pdf_scale;
+static float pdf_scale = DEFAULT_EXPORT_SCALE;
static char *owner_pass;
static char *user_pass;
@@ -288,12 +288,7 @@ bool pdf_plot_text(int x, int y, const struct css_style *style,
else
size = css_len2pt(&style->font_size.value.length, style);
- /*this can be removed when export options get added for riscos*/
-#ifdef riscos
- size *= DEFAULT_EXPORT_SCALE;
-#else
size *= pdf_scale;
-#endif
if (size <= 0)
return true;
@@ -812,7 +807,9 @@ void pdf_plot_grid(int x_dist, int y_dist, unsigned int colour)
}
#endif
-/**used to synch the text scale with the scale for the whole content*/
+/**
+ * Sync the text scale with the scale for the whole content
+ */
void pdf_set_scale(float s)
{
pdf_scale = s;