blog, (edited ) to CSS
@blog@shkspr.mobi avatar

Use CSS to boost the font size of emoji with no extra markup
https://shkspr.mobi/blog/2024/04/use-css-to-boost-the-font-size-of-emoji-with-no-extra-markup/

I want to make emoji bigger than the text that surrounds them. At my age and eyesight, it can be difficult to tell the difference between 😃, 😄, and 😊 when they are as small as the text.

Is there a way to use CSS to increase the font size of specific characters without having to wrap them in an extra <span> or similar?

Yes! Although it is a bit of a hack.

This relies on 3 CSS features: src: local(), unicode-range,and size-adjust. Let me walk you through it.

@font-face {    font-family: "emoji";    src: local('Apple Color Emoji'),         local('Android Emoji'),         local('Segoe UI Emoji'),         local('Noto Color Emoji'),         local(EmojiSymbols),         local(Symbola);    unicode-range: U+231A-231B, U+23E9-23EC, U+23F0, U+23F3, U+25FD-25FE, U+2614-2615, U+2648-2653, U+267F, U+2693, U+26A1, U+26AA-26AB, U+26BD-26BE, U+26C4-26C5, U+26CE, U+26D4, U+26EA, U+26F2-26F3, U+26F5, U+26FA, U+26FD, U+2705, U+270A-270B, U+2728, U+274C, U+274E, U+2753-2755, U+2757, U+2795-2797, U+27B0, U+27BF, U+2B1B-2B1C, U+2B50, U+2B55, U+FE0F, U+1F004, U+1F0CF, U+1F18E, U+1F191-1F19A, U+1F1E6-1F1FF, U+1F201, U+1F21A, U+1F22F, U+1F232-1F236, U+1F238-1F23A, U+1F250-1F251, U+1F300-1F320, U+1F32D-1F335, U+1F337-1F393, U+1F3A0-1F3CA, U+1F3CF-1F3D3, U+1F3E0-1F3F0, U+1F3F4, U+1F3F8-1F43E, U+1F440, U+1F442-1F4FC, U+1F4FF-1F53D, U+1F54B-1F567, U+1F57A, U+1F595-1F596, U+1F5A4, U+1F5FB-1F64F, U+1F680-1F6CC, U+1F6D0-1F6D2, U+1F6D5-1F6D7, U+1F6DC-1F6DF, U+1F6EB-1F6EC, U+1F6F4-1F6FC, U+1F7E0-1F7EB, U+1F7F0, U+1F90C-1F93A, U+1F93C-1F945, U+1F947-1FA7C, U+1FA80-1FAC5, U+1FACE-1FADB, U+1FAE0-1FAE8, U+1FAF0-1FAF8;    size-adjust: 300%;}body {    font-family: "emoji", sans-serif;}

Here's how it works.

@font-face this tells the browser that we're defining a new font which will be referenced later.

font-family this is the name we're going to be using as a reference.

src: local('Apple Color Emoji') ... CSS can reference local fonts. We don't know what device this page is being viewed on, so we've included a number of popular fallback fonts which should work with all major browsers. You can also reference a webfont if you want - although Emoji fonts tend to have a large filesize. I've adapted this from Marc Fornós' CSS and added a few more common default emoji fonts.

https://developer.mozilla.org/en-US/docs/Web/CSS/%40font-face/unicode-range this tells the browser to use this font only for the specific codepoints mentioned. This is where the magic happens.

Emoji codepoints are complicated - especially when it comes to combining characters. You can see a full list of every sequence in Unicode 15.1. There are currently 3,782 different emoji.

There was some talk of using named ranges but that doesn't seem to have gone anywhere. So, instead, I've extracted all the Emoji codepoints and manually grouped them. It's a pretty long sequence, and I'm sure I've made a few mistakes.

https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/size-adjust this is used to increase or decrease the apparent size of a font.

Finally, the body { font-family: "emoji", sans-serif; } tells the browser to use the Emoji font (remember, this will only work on the specified Unicode range) and then fall back to the defaults sans-serif font. Obviously, you can specify whatever fonts you like.

Have a play with it

This is a nifty little hack if you want to make Emoji (or any other text) bigger than its surroundings.

I am indebted to Šime Vidas who demonstrated this trick to me.

https://shkspr.mobi/blog/2024/04/use-css-to-boost-the-font-size-of-emoji-with-no-extra-markup/

iamdtms, to random
@iamdtms@mas.to avatar

https://htmlemoji.cloud/en#people
subgroup: person-gesture: 🤦‍♂ man facepalming and more

mynotaurus, to random
@mynotaurus@floofy.tech avatar

Yingmotes v3.1!!! :myno_yell:

44 new static emotes and 9 new animated ones!
(also added reversed versions for if you want flipped sets)

https://github.com/Mynotaurus/Yingmotes/releases

zirias, to FreeBSD
@zirias@techhub.social avatar

🚦🚥 ... ok it works 🌋

A super-simple keyboard for .

Well, I did have to fiddle with the keymap.

And I had to add delays 🤯👹 (otherwise there are races between keymap changes and keyboard events).

And I had to misuse the extension, cause applications ignore "synthetic" events. 🫥😣

But hey, it works 🕺

Now needs some basic, uhm, "features" (like recently used, like search by name).

https://github.com/Zirias/qxmoji

zirias,
@zirias@techhub.social avatar

First "features" added ...

  • Can now select 5 "scale factors" for the size of the emojis, "Tiny" being the same size as default window text (which is normally indeed tiny for emojis)

  • Auto-stores these settings as well as the window dimensions (not position!)

zirias,
@zirias@techhub.social avatar

v0.1 and v0.2 released 😎

Functionally the same (just clickable emojis in tabbed groups, display size and wait-time for restoring the X11 keyboard map configurable), but v0.2 has correct README info and build-fixes, so Qt tools are found without fiddling with make variables 🙈 so, use v0.2 😎

https://github.com/Zirias/qxmoji/releases/tag/v0.2

zirias,
@zirias@techhub.social avatar

🥳 v0.3 released 🍻🍕

Now there are the "basic" features you'd expect from an emoji keyboard:

✅ Search as you type
✅ Recently used

https://github.com/Zirias/qxmoji/releases/tag/v0.3

image/png
image/png
image/png

zirias,
@zirias@techhub.social avatar

Found a small bug, requests were synchronously checked, but this only works when calling the _checked() flavor of them ... 🙈

Fixed in v0.4

Also added a clear button to the search field, this seems somewhat useful 😉

https://github.com/Zirias/qxmoji/releases/tag/v0.4

zirias,
@zirias@techhub.social avatar

Thinking about what to include in v0.5. Many questions in mind...

I'll definitely "outscope" . Would be nice, but would also mean to import localized emoji names somehow (and, where to find them? 🤔)

For now:

🔹Unify persisting settings. history and window size are persisted on exit, wait time and display scale on every change. Not sure which one is the "better" approach...
🔹Should it be "single instance"? Should it offer an option for a "tray icon"?
🔹Add an "About dialog". Cause that's what you always do. 🙈
🔹Maybe find a way to speed up initial creation of the Emoji buttons?
🔹Anything else ...❓

Please comment if you have thoughts to share 🙃

zirias,
@zirias@techhub.social avatar

v0.5 released!
https://github.com/Zirias/qxmoji/releases/tag/v0.5

This brings a few of the ideas I had:

🔹Add a "single instance" mode (configurable)
🔹Add a "tray icon" (configurable behavior)
🔹Add an "About" dialog
🔹Enforce using Qt's "xcb" platform
🔹Fix detaching on startup, add a flag (-d) to prevent it

Pretty usable as it is I hope ... although one could of course improve a lot (but have you heard of the 80-20-rule?) 🫣

Screenshot from this time, no particular reason, I'm still running here 😎

o76923, to random
@o76923@kitty.social avatar

I needed to say "The factory must grow" to someone so I've added the ​:factorio_wheel:​ to kitty.social.

hollie, to random
@hollie@social.coop avatar

I want there to be a bison emoji, for folks. And then we can offer a Higs, which is a very small hug, for people in tender states of pain and/or exhaustion.

Higs are technically Higs Bison hug particles, named after Petra Higs, who once soothed a chronically-ill bison with a very small hug.

Anyone want to draw a very small bison emoji?

o76923, to random
@o76923@kitty.social avatar

It's a bummer that doesn't support $[fade foo] in . How am I going to dodge lasers from the drgn set now?

​:neocat_peek_owo:​​:drgn_laser_end_hit:​​:drgn_laser_mid:​​:drgn_laser_start:​​:drgn_gun:​

o76923, to random
@o76923@kitty.social avatar

Another set of should be propagating around Kitty.social soon. Please welcome the ​:neopossum:​ neopossum by @EeveeEuphoria to our lives!

Also, to comply with licensing terms, I'm tracking sources of emoji that I add on Emoji added by o76923.

vincentneo, to macos
@vincentneo@mastodon.social avatar

Iconic 1.3 has been released with support for new emojis from macOS 14.4 as well as SF Symbols 5.2!

https://apps.apple.com/sg/app/iconic/id1582751983?mt=12

o76923, to arknights
@o76923@kitty.social avatar

I'm bummed that both and react images are optimized for 150-400 px square images. That's ideal for react posts but they are unreadable as reactions. Sure, if you know what they are you might recognize them but without context, they are hard to interpret.

jake4480, to random
@jake4480@c.im avatar

One of the better Rogule runs I've done so far. But a streak of 6 before - wow, I gotta get back to that.

https://rogule.com

favrion, to nba
@favrion@mastodon.social avatar
t3rminus, to neverwinternights
@t3rminus@calamity.world avatar

A few months ago I tried to track down the origin of this ADORABLE emote, and ran into dead ends and deleted discord threads. Ultimately I decided to re-create it in vector format so there's a high-quality version if anyone wants to use it.

Thanks to everyone who helped my search! If you do know the source, I'd love to credit them, and if they want me to remove this I will.

SVG: https://www.k3vin.net/host/drgn_hug.svg

t3n, to Instagram German
@t3n@t3n.social avatar

Instagram hat ein verstecktes Mini-Game: So spielst du Emoji-Pong

Instagram steht für Fotos und kurze Reels, klar. Doch wer noch mehr Zeit in der App verbringen möchte, kann dort jetzt auch zocken. Wir zeigen dir, wie das funktioniert.
👉 👀 https://t3n.de/news/instagram-mini-game-versteckt-emoji-pong-1613032/?utm_source=mastodon&utm_medium=referral

metin, to fun
@metin@graphics.social avatar
mynotaurus, to random
@mynotaurus@floofy.tech avatar

Yingmotes v3.0!!

the last update for a while cause i think its finally feeling pretty complete as a set :ying_party:​

231 emotes in 5 different premade color palettes, and a python script to make your own palettes! :ying_amused_blep:​

https://github.com/Mynotaurus/Yingmotes/releases go forth, spread yinglets across the fediverse once more

Iconfactory, to design
@Iconfactory@iconfactory.world avatar

One of our favorite parts of the work we do at the Iconfactory is to design emoji. Founder @gedeonm was recently interviewed about the design process behind the emoji you probably use and love every single day. https://panorama.ro/how-emojis-conquered-online-communication-designers/

If you need emoji or iconography for your project or business, be sure to check us out, we'd love to work together. 🙂 👍

https://iconfactory.com/

schizanon, to UX
@schizanon@mas.to avatar

All Emoji-pickers are cursed, but there's a special place in hell for those that make you scroll through a bunch of premium emojis to get to the "free" ones

Edent, to bitwarden
@Edent@mastodon.social avatar

🆕 blog! “Happy 2nd Birthday to this Bitwarden bug!”

Exactly two years ago to the day, I reported a weird little emoji bug with Bitwarden. Let's say you want a password of: ✅🐎🔋📎 (As close as possible to Correct Horse Battery Staple) That works. Emoji are stored and retrieved correctly. You can use them with any system which supports them. But you can't view […]

👀 Read more: https://shkspr.mobi/blog/2023/03/happy-2nd-birthday-to-this-bitwarden-bug/

Edent,
@Edent@mastodon.social avatar

This @bitwarden bug is now 3 years old.

https://github.com/bitwarden/mobile/issues/1310

If you have experience with and please try to contribute a fix.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • magazineikmin
  • cubers
  • InstantRegret
  • cisconetworking
  • Youngstown
  • vwfavf
  • slotface
  • Durango
  • rosin
  • everett
  • kavyap
  • DreamBathrooms
  • provamag3
  • mdbf
  • khanakhh
  • modclub
  • tester
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • ngwrru68w68
  • Leos
  • anitta
  • tacticalgear
  • normalnudes
  • JUstTest
  • All magazines