sudomemo / sudofont Goto Github PK
View Code? Open in Web Editor NEWIcon font version of the Nintendo DS' special font characters
License: MIT License
Icon font version of the Nintendo DS' special font characters
License: MIT License
title
(title)
basically means the generated css doesn't get all the relevant codepoints put in the font-family declaration
This way, we can have the DSi style emoji on the site while still having the right 'equivalent' ones show up on OpenGraph, sharing, Google, and so on.
Right now I switched it to this:
<?php
// new version of stringToEmoji to use actual globally-supported emoji substitutes
function stringToEmoji ($string) {
$nintendoPUA = [ '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//', '//' ];
$replacementCharacters = ['😃', '😠', '😔', '😑', '☀', '☁', '☔', '⛄', '✉', '📱', '⏰', 'Ⓐ', 'Ⓑ', 'Ⓧ', 'Ⓨ', 'Ⓛ', 'Ⓡ', '➕', '♠', '♦', '♥', '♣', '❗', '❓', '➡', '⬅', '⬆', '⬇', '✕', '🐸' ];
return preg_replace($nintendoPUA, $replacementCharacters, $string);
}
replacing the other characters with the Sudofont glyphs will restore the DSi symbols to Theatre whilst making them show up properly everywhere else.
It's hard to use these for an icon font when they're all rather inconsistent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.