mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
Tweak emoji rendering
This commit is contained in:
parent
c1c9cfb46b
commit
b5e5462585
1 changed files with 2 additions and 2 deletions
|
@ -66,11 +66,11 @@ namespace Greenshot.Editor.Drawing.Emoji
|
|||
private static void RenderEmoji(string emoji, int iconSize, Image image)
|
||||
{
|
||||
var fontFamily = TwemojiFontFamily.Value;
|
||||
var font = fontFamily.CreateFont(iconSize, FontStyle.Regular);
|
||||
var font = fontFamily.CreateFont(iconSize * 0.95f, FontStyle.Regular);
|
||||
var verticalOffset = font.Size * 0.045f;
|
||||
var textOptions = new TextOptions(font)
|
||||
{
|
||||
Origin = new PointF(font.Size / 2.0f, font.Size / 2.0f + verticalOffset),
|
||||
Origin = new PointF(iconSize / 2.0f, iconSize / 2.0f + verticalOffset),
|
||||
HorizontalAlignment = HorizontalAlignment.Center,
|
||||
VerticalAlignment = VerticalAlignment.Center
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue