font4social-unicode
v0.1.0
Published
Dependency-free Unicode text style and invisible character helpers from Font4Social.
Maintainers
Readme
font4social-unicode
Dependency-free Unicode text style and invisible character helpers from Font4Social.
This package is a small developer toolkit. It does not include the full Font4Social visual interface or the full style database, but it gives JavaScript projects a simple way to convert plain text into common Unicode styles and generate invisible/blank text.
Full visual tools:
- Unicode Text Generator
- Invisible Character & Blank Text Generator
- Emoji Copy Paste & PNG Sticker Maker
- Social QR Code Generator
Install
npm install font4social-unicodeUsage
import {
toUnicodeStyle,
decorateText,
blankText,
getInvisibleCharacter,
listStyles
} from "font4social-unicode";
toUnicodeStyle("Creator 123", "bold");
// "𝐂𝐫𝐞𝐚𝐭𝐨𝐫 𝟏𝟐𝟑"
toUnicodeStyle("Creator", "fullwidth");
// "Creator"
decorateText("Player", {
style: "boldItalic",
prefix: "✦ ",
suffix: " ✦"
});
// "✦ 𝑷𝒍𝒂𝒚𝒆𝒓 ✦"
blankText("brailleBlank", 3);
// "\u2800\u2800\u2800"
getInvisibleCharacter("zeroWidthSpace");
// "\u200B"
listStyles();
// [{ id: "bold", name: "Bold", ... }, ...]Included Unicode Styles
bolditalicboldItalicscriptscriptBoldfrakturfrakturBolddoubleStruckmonospacefullwidthcircled
Included Invisible Characters
brailleBlank(U+2800)hangulFiller(U+3164)zeroWidthSpace(U+200B)nonBreakingSpace(U+00A0)wordJoiner(U+2060)
Different apps handle invisible Unicode characters differently. Some platforms may trim, block, or normalize them to prevent spam or impersonation. Always test before using them in a profile, bio, message, or game name.
API
toUnicodeStyle(text, styleId)
Converts supported Latin letters and digits into a Unicode style.
toUnicodeStyle("Hello", "monospace");decorateText(text, options)
Applies a style and optional prefix/suffix.
decorateText("Name", { style: "bold", prefix: "★ ", suffix: " ★" });blankText(characterId, count)
Returns repeated invisible/blank characters.
blankText("hangulFiller", 5);getInvisibleCharacter(characterId)
Returns one invisible/blank character.
getInvisibleCharacter("wordJoiner");listStyles()
Returns metadata for supported text styles.
listInvisibleCharacters()
Returns metadata for supported invisible characters.
Notes
- This package converts regular Latin
A-Z,a-z, and digits where Unicode equivalents exist. - Unicode styled text is not a real font file. It is copy-paste text made from Unicode symbols.
- Screen readers, search, moderation systems, and app rendering may treat styled Unicode text differently from normal text.
- This package is independent and is not affiliated with Instagram, TikTok, Discord, Steam, Facebook, Apple, Google, Microsoft, or other platforms mentioned.
License
MIT
