Font with part or all Javascript?

javascript's picture

I am a newbie to font development and need some help.

I have a need to have a font where part of it needs to be in javascript. Actually one letter only, is there a possibility to put javascript letter within a font? Though if technically it is not possible with only 1 letter then a total javascript font. Thus is a total font in javascript possible?

This letter क on the posting, is it in javascript, can the k/K on a font be removed and this क javascript be put instead? This will allow users to type with this javascript on text editors or wordprocessors that allow javascript any internet content that can then be copy/pasted.

Frode Bo Helland's picture

I’m not sure if I understand what you want to do. For web applications, you can easily substitute a letter for another letter but the actual Javascript (or server side) code would never reside in the font file.

The most common coding language used in font files is called Opentype. It’s the only one with broad application support. With OT you can easily substitute one glyph for another for use in text editors and word processors that support it using for example contextual alternates.

aluminum's picture

what is a 'javascript letter'? Are we talking browser scripting or some form of Indonesian writing?

javascript's picture references a website that allows you to change k/K letters to क/क. I would be really interested to find out if any coders are interested to do a local PC version through a bundling software that I saw and have information about.

aluminum's picture

"This is a service that changes the k/K shape as you type to another shape for spiritual reasons."


It that web site yours?

Theunis de Jong's picture

Apparently the letter K has some bad qarma. Unfortunately, the web page does not carry fonts nor foundries nor designer names to warn us for.

How does Comic Sans rate on this karma scale?

javascript's picture

क is recognised on wordprocessors these days allowing even find and replace k/K with क. Thus can there be wordprocessor plugin feature, see

Steven Acres's picture

I think this may be one of the dumbest things I've ever read.

All this site does is say K IS BAD in badly written english (constantly using the word "alphabet" to describe one letter. An alphabet is an ENTIRE character set), and then cites a whole bunch of religious babble.

On the "basis" page it states "Because the shape of alphabets can give meaning." That is completely incorrect. Letters were designed to be tautological (look it up.) They aren't supposed to reference any outside entity: they are meant to represent themselves (a grapheme). What you are thinking of are pictographs.

javascript's picture

Could there be a browser plugin, see

kentlew's picture

Oh yes, that’s much more friendly. :-p

Theunis de Jong's picture

Apparently there are people who prefer the glyph क (Devanagari 'k') over the common Latin glyph 'K' -- and then so much they go to extremes not to see it (apparently, including, but likely not limited to, patching web browsers and text editors). The word "knickknack" must be extremely bad.

Hey, Kent, it works the wrong way around for you! Bad karma? That's what you get for a name that starts with 'K'!

javascript's picture

gedit Text Editor recognises क also.

clauses's picture


Khaled Hosny's picture


clauses's picture

Pertinent to the very subject of this thread:

Stickley's picture

Is it as simple as swapping out the shape in the k/K glyphs' positions in the font for the one you want to use? The way one could use a single- or double-story a or g depending on the typeface's design?

It'll appear as a k/K in any other font, but looks like the alternate version in the one you'll create. That way with the new font you'd never see a k or K, just the shape you want in its place. No code, it's just part of the font. Also, any text viewed in this new font would always have the k/K replaced as well.

Steven Acres's picture

Apparently there are people who prefer the glyph क (Devanagari 'k') over the common Latin glyph 'K'

This doesn't make any sense to me. How can you "not like" a character? K, X, h, #, what's the difference?

Frode Bo Helland's picture

This is perhaps the most bizarre thread I’ve ever seen here.

andrevv's picture

lolwut. is anyone as confused as me?

Richard Fink's picture

Well, if you've ever seen the movie "The Sunshine Boys" by Neil Simon then you know that some letters are funny and some aren't. K is one of the funny letters - if not THE funniest, so I say stick with it.

Yes, this is a weird thread.

Steven Acres's picture

lol please look at the site that Theunis posted:

kentlew's picture

Ah, so that’s supposed to be a Devanagari “ka”?! Thanks, Theunis. I don’t happen to have any Indic fonts loaded.

Suddenly it all makes a twisted sense to me. I’ll have to start practicing my new signature.

Hmm; technically, though, shouldn’t one really include the virama in order to suppress the inherent vowel in “ka”?

microspective's picture

As a tabla player, this thread is that much more odd.

For the uninitiated, क is the name of an empty stroke on the bayan (the 'bass' drum of the pair), producing a *slap* sound. To think of क as "k/K" instead of "ka/Ka" makes little to no sense to me...

Steven Acres's picture

To think of क as "k/K" instead of "ka/Ka" makes little to no sense to me...

Or anyone else ;)

javascript's picture

Use BBT Font on your Blogs - Press Release

javascript's picture

Newsgroups: alt.comp.freeware
From: Blog Fonts
Date: Tue, 24 Aug 2010 03:02:22 -0700 (PDT)
Local: Tues, Aug 24 2010 10:02 am
Subject: Use BBT Font on your Blogs - Press Release

New standard being installed on latest browsers (some now and later),
for example Mozilla Firefox and IE allows for fonts to be easily used
on Blogs and Websites. This is the Web Open Font Format or WOFF see

BBT font introduced in 2008 for altering the k/K letter shapes for
spirituality has been updated for this new standard. Now you can use
it on Blogs with easy code snippet called @font-face and some changes
to the Blog CSS stylesheet.

This is a blog using the BBT font as an example:

Photo with the BBT font are here:

HTML for Websites < a href=""
target="_blank">Image and video hosting by TinyPic

(delete space between < a above for use)

IMG Code for Forums & Message Boards [IMG]

URL for E-Mail & IM

Direct URL for Layouts

For using it on your blog see instructions here:

aluminum's picture

Is this a Scientology thing or something?

javascript's picture

@luminum "Is this a Scientology thing or something?"

No, it's Sanatana Dharma

David Sudweeks's picture

Congratulations 'javascript' for accomplishing what you set out to do. Do you not find it a bit jarring; the slight delay between when the page loads, and when your custom webfont loads?

javascript's picture

@David Sudweeks

This is the response to sebastian_k on another thread that is also apt here:

"I am pleased with the WOFF @font-face result compared with no font use at blogs and websites. I am not a techie thus if you feel it can be improved please contact me via this board's contact feature.

(sebastian_k mentioned webfontloader that could help also)
Please correct me if I am wrong: seems to be tied to Google API w/ affiliates: Google Font Directory and Typekit (at this time) and thus not open for every font.

Google Font Directory has a monopolistic class tendency, not answering or mentioning their quality control issues and wanting to tyrant over spiritual font (race/religious (r/r) discrimination)."

clauses's picture

What about к ĸ Ķ Ƙ ƙ Ǩ ǩ Κ κ Ќ К к Қ қ Ҝ ҝ Ҟ ҟ Ҡ ҡ Ӄ ӄ Ԟ ԟ?

Ray Larabie's picture

This is a job for a browser extension/plugin. It can probably be accomplished be with a Greasemonkey script but you'd probably want to develop a custom extension for ease of deployment. Hire a qualified programmer to create extensions for whatever browsere are popular in your country. That way you can effectively filter most of the K's on the web. Making a custom font is a bad idea because you'd still have to write an extension to replace all fonts with this new font. Plus it wouldn't as well hinted, you'd need a monospaced version etc. An extension that simply swaps on letter would be easy to write, easy to deploy and would work on almost all web sites. Of course, you probably can't block a K in a bitmap or Flash but you can get most of them.

javascript's picture

Please say the languages that you have put and if they are the only letters in those languages, then could not क still be used?

Good then.

Theunis de Jong's picture

A language using only k's?

Clauses lists all (well, a lot of) typographic and etymologic variants of the Latin letter 'k'. I recognize Greenlandic 'kra', K with cedilla, K with hooked top (probably for African orthography), k with caron, Cyrillic K with and without bar and line. Greenlandic 'kra' has a note it's really more a of a 'q' -- how does that fit? Ban 'q' as well?

In chemistry, the capital letter "K" is used to indicate potassium ("Kalium"). In phonetics, the upside down 'k' is used to indicate a velar click. In physics, the small letter 'k' denotes the Boltzmann Constant. Same problem, same solution?

javascript's picture

@David Sudweeks

Hosting fonts / @font-face - S. Lee:

Syndicate content Syndicate content