From 89e7f7c484af0a5a8cb4083a71958c3a16b0a951 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 11 Nov 2020 12:37:11 +0100 Subject: =?UTF-8?q?issue=20@8169=20"\emoji=20heavy=5Fcheck=5Fmark"=20produ?= =?UTF-8?q?ces=20=E2=9C=93=20instead=20of=20=E2=9C=94=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create the possibility to change the used font for an emoji (the default is unchanged, but an example is given of how it is used at the site: https://unicode.org/emoji/charts/full-emoji-list.html). --- src/htmldocvisitor.cpp | 2 +- templates/html/doxygen.css | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 6f740ba..f577acb 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -338,7 +338,7 @@ void HtmlDocVisitor::visit(DocEmoji *s) const char *res = EmojiEntityMapper::instance()->unicode(s->index()); if (res) { - m_t << res; + m_t << "
"<"; } else { diff --git a/templates/html/doxygen.css b/templates/html/doxygen.css index 141d418..0b09da4 100644 --- a/templates/html/doxygen.css +++ b/templates/html/doxygen.css @@ -1426,6 +1426,12 @@ div.toc li.level4 { margin-left: 45px; } +div.emoji { + /* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html + * font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort; + */ +} + .PageDocRTL-title div.toc li.level1 { margin-left: 0 !important; margin-right: 0; -- cgit v0.12