[NTG-context] Smileys

Jaroslav Hajtmar hajtmar at gyza.cz
Wed Aug 17 16:02:29 CEST 2011


Hello Cecil ...
Here is my simple tip. All you need is a font set, which are needed 
emoticons ...


\def\numcharacter#1{\char#1{}}
\let\dochar\numcharacter

\definefont[wingding][wingding.ttf at 12pt]

\starttext

{\wingding \dochar{74}\dochar{75}\dochar{76}}

\stoptext


With greeting Jaroslav Hajtmar



Dne 17.8.2011 14:27, Mojca Miklavec napsal(a):
> On Wed, Aug 17, 2011 at 13:26, Cecil Westerhof wrote:
>    
>> 2011/8/17 Mojca Miklavec wrote:
>>      
>>>   \def\smiley{\externalfigure[img/smilies/smiley.png][height=\lineheight]}
>>>
>>> Of course you can also use fonts (even marvosym), but they will only
>>> show ugly black-and-white strokes which is probably not what you want.
>>>        
>> At least originally was it what I wanted. Because when you use fonts they
>> scale to the fontsize you are using. So I would think that looks the best.
>> But you make a good point.
>>      
> If you need help with setting up some particular font, feel free to ask.
>
> But you should be able to get automatic scaling of png images based on
> line height. If images come in different sizes, you need a bit more
> trickery, but it is doable. Just ask again once you find the suitable
> images.
>
> Mojca
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
>
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list