title: What's the right way to display emoticons?
body: <p>In your own application that is.</p>
  
  <p>[edit]</p>
  
  <p><strong>Alright, so I agree completely -- more than you know -- without equivocation that graphical emoticons are an abomination.
  But! That doesn't help me when the project owners tell me that we must support graphical emoticons.</strong></p>
  
  <p>[/edit]</p>
  
  <p>The problem more complex than it would initially seem, especially when you take into account editing, word wrapping, variable width fonts, and color emoticons.</p>
  
  <p><strong>So my question is really to people who have done this, have you come up with a satisfactory way of rendering emoticons that isn't just one massive hack?</strong></p>
  
  <p>To start the discussion:</p>
  
  <p>In two implementations I've tried the following approaches.</p>
  
  <p>In a 3D application where lines of text where rendered to "textures"; I replaced emoticon strings with images, matching the type of the text renders, so the emoticon becomes just another element of the text.</p>
  
  <p>Essentially the text rendering engine had to be modified at the deepest levels. This produces good results, but is very time consuming, and very hard to get right (Or at least for me anyway ;P)</p>
  
  <p>In the second approach (With a different language and platform) I decided to try a higher-level "fake" by replacing emoticon strings with a single character and drawing emotions over the replaced character. This of course has lots of limitations, but has the benefit of being fairly fast to implement, and it's possible to reach a reasonably stable state without an excess of effort.</p>