OSDN Git Service

Merge pull request #176 from opentween/color-emoji-in-webbrowser
authorupsilon <kim.upsilon@bucyou.net>
Tue, 10 Jan 2023 19:11:18 +0000 (04:11 +0900)
committerGitHub <noreply@github.com>
Tue, 10 Jan 2023 19:11:18 +0000 (04:11 +0900)
WebBrowserコンポーネント内でのカラー絵文字の描画に対応

OpenTween/Resources/ChangeLog.txt
OpenTween/Tween.cs

index 32333f5..c8bc34a 100644 (file)
@@ -2,6 +2,7 @@
 
 ==== Unreleased
  * NEW: サムネイル画像のコンテキストメニューに「画像をコピー」を追加 (thx @kzlogos!)
+ * NEW: Segoe UI Emoji によるカラー絵文字の描画に対応(発言詳細欄のみ)
  * CHG: Twemojiの画像の取得元をMaxCDNからCloudflareに移行 (thx @sou_niyari!)
 
 ==== Ver 2.7.1(2022/09/03)
index 5cc1ace..5e65dea 100644 (file)
@@ -101,7 +101,7 @@ namespace OpenTween
             "<head><meta http-equiv=\"X-UA-Compatible\" content=\"IE=8\">"
             + "<style type=\"text/css\"><!-- "
             + "body, p, pre {margin: 0;} "
-            + "body {font-family: \"%FONT_FAMILY%\", sans-serif; font-size: %FONT_SIZE%pt; background-color:rgb(%BG_COLOR%); word-wrap: break-word; color:rgb(%FONT_COLOR%);} "
+            + "body {font-family: \"%FONT_FAMILY%\", \"Segoe UI Emoji\", sans-serif; font-size: %FONT_SIZE%pt; background-color:rgb(%BG_COLOR%); word-wrap: break-word; color:rgb(%FONT_COLOR%);} "
             + "pre {font-family: inherit;} "
             + "a:link, a:visited, a:active, a:hover {color:rgb(%LINK_COLOR%); } "
             + "img.emoji {width: 1em; height: 1em; margin: 0 .05em 0 .1em; vertical-align: -0.1em; border: none;} "