For my first Shoes project, I'm making a Khmer calculator. Unless they're
running Vista, most people won't have any fonts on their computer with the
necessary characters (U+1780 to 17FF, especially the numerals 17E0 - 17E9).

What do I do to ensure that these characters display in my Shoes app?

And what is likely to be the simplest way to specify one font for English
text and another for Khmer?

Thanks!


Roger Sperberg
firstinitial no space lastname at gmail


On Sun, Apr 19, 2009 at 6:59 AM, François Vaux <[email protected]> wrote:

> 2009/4/19 eric <[email protected]>:
> > Hi,
> >  I want to specify the font of all of the elements in
> > shoes application. It says that "In some cases, you can even style
> > an entire class of elements" in the Shoes Manual, but I can not
> > find the way to do it in the manual.
> > Could anybody give me a clue?
> >
> > Is is possible to specify the fonts used by all elements?
>
> Hi,
>
> You can use the style method to set default styles for elements.
>
> Example:
>
>  style Shoes::Para, :stroke => blue, :font => "10px"
>
> Thus, using the same font for every text element should be easy, just
> spot the right classes in the shoes manual.
>
> --
> François
>



-- 
Roger Sperberg
27 Aubrey Rd
Montclair, NJ 07043-2201
973-200-4224 rings all numbers
-- 
rsperberg at gmail.com

Reply via email to