[Commits] [SCM] claws branch, gtk2, updated. 3.19.1-83-g7cfd53bcc
jonathan at claws-mail.org
jonathan at claws-mail.org
Sun Oct 22 11:52:45 UTC 2023
The branch, gtk2 has been updated
via 7cfd53bcc732e47eca5dbacfd5560de047b79e5d (commit)
from 70781f6704d2d5bb68a621d86fce04e10371a702 (commit)
Summary of changes:
src/plugins/litehtml_viewer/container_linux.cpp | 4 ++++
src/plugins/litehtml_viewer/container_linux.h | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 7cfd53bcc732e47eca5dbacfd5560de047b79e5d
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date: Mon Oct 9 01:54:07 2023 -0700
Use custom get_default_font_size() and _name()
diff --git a/src/plugins/litehtml_viewer/container_linux.cpp b/src/plugins/litehtml_viewer/container_linux.cpp
index d7af5542d..aa61398d7 100644
--- a/src/plugins/litehtml_viewer/container_linux.cpp
+++ b/src/plugins/litehtml_viewer/container_linux.cpp
@@ -216,10 +216,12 @@ int container_linux::pt_to_px( int pt ) const
return (int) ((double) pt * dpi / 72.0);
}
+/*
int container_linux::get_default_font_size() const
{
return pt_to_px(12);
}
+*/
void container_linux::draw_list_marker( litehtml::uint_ptr hdc, const litehtml::list_marker& marker )
{
@@ -920,10 +922,12 @@ gint container_linux::clear_images(gsize desired_size)
return num;
}
+/*
const char* container_linux::get_default_font_name() const
{
return "Times New Roman";
}
+*/
std::shared_ptr<litehtml::element> container_linux::create_element(const char *tag_name,
const litehtml::string_map &attributes,
diff --git a/src/plugins/litehtml_viewer/container_linux.h b/src/plugins/litehtml_viewer/container_linux.h
index 3022b6ef3..99b84c0ae 100644
--- a/src/plugins/litehtml_viewer/container_linux.h
+++ b/src/plugins/litehtml_viewer/container_linux.h
@@ -84,8 +84,8 @@ public:
int text_width(const char* text, litehtml::uint_ptr hFont) override;
void draw_text(litehtml::uint_ptr hdc, const char* text, litehtml::uint_ptr hFont, litehtml::web_color color, const litehtml::position& pos) override;
int pt_to_px(int pt) const override;
- int get_default_font_size() const override;
- const char* get_default_font_name() const override;
+ //int get_default_font_size() const override;
+ //const char* get_default_font_name() const override;
void load_image(const char* src, const char* baseurl, bool redraw_on_ready) override;
void get_image_size(const char* src, const char* baseurl, litehtml::size& sz) override;
void draw_background(litehtml::uint_ptr hdc, const std::vector<litehtml::background_paint>& bg) override;
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list