philatype / Sen

http://philatype.com/#sen
SIL Open Font License 1.1
54 stars 4 forks source link

Typing certain phrases produces unwanted emojis #6

Closed terminal29 closed 1 year ago

terminal29 commented 4 years ago

Not sure if this is an easter egg but typing any words with tantan in them ie. 'Instantaneous' makes a smiley face.

SS from https://fonts.google.com/specimen/Sen: image

Great font otherwise.

Sam-Apostel commented 4 years ago

as this is defined in the code, this is likely an inside joke/easter egg

whiteSmilingface @ UFOs/Sen-Regular.ufo/glyphs/whiteS_milingF_ace.glif substituting code: sub k o s a l by whiteSmilingFace; sub t a n t a n by whiteSmilingFace; sub s t a r l e e by whiteSmilingFace; sub colon D by whiteSmilingFace; @ UFOs/Sen-Regular.ufo/features.fea

as far as I can tell, this is the mirrored smiley from the album art of not even once by approaching nirvana.

account00001 commented 3 years ago

I made a fork to remove these 'easter eggs' (except for ':D'). As great as they are, my use case can't have smileys show up for words like 'instantaneous.' Unfortunately, I don't think I can upload to Google Fonts, but you can still use locally like so:

@font-face {
  font-family: 'Sen';
  src: url('fonts-path/Sen-Regular.eot'); /* IE9 Compat Modes */
  src: url('fonts-path/Sen-Regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts-path/Sen-Regular.woff') format('woff'), /* Modern Browsers */
       url('fonts-path/Sen-Regular.ttf')  format('truetype'), /* Safari, Android, iOS */
       url('fonts-path/Sen-Regular.svg#Sen') format('svg'); /* Legacy iOS */
}

Just replace fonts-path with the path to these fonts. Although this removed the smileys for me, I didn't test each font one by one so apologies if there are errors.

countfak commented 1 year ago

So, I have a client that needs to type the word "instantaneous", his website has thousands of views per day, and this is happening. And I have to fix it. Thank you very much this is so funny!

flynnduism commented 1 year ago

Wow, we came across this bug on our site this week - what a bug!