I am looking for some sample Java code demonstrating how to get AJAX
content displayed into a custom font using Typeface.js within a GWT
app. I have tried a little bit by calling the following native
function

    native void Typeface_renderDocument() /*-{
        $wnd._typeface_js.renderDocument();
    }-*/;

    * after having filled the relevant widget with the AJAX content,
and
    *

      after calling the following function on the widget :

      void applyTypeface(Widget widget) {
          widget.addStyleName("typeface-js");
          widget.getElement().getStyle().setProperty("fontFamily",
"Helvetiker");
          Typeface_renderDocument();
      }

...where Helvetiker is a custom font (actually available from
Typeface.js fonts page (http://typeface.neocracy.org/fonts.html). But
that didn't work.

I am looking forward to any suggestions since I am bit stuck here.
Alternatively I would be interested in an example using cufón within
GWT, although I am not so keen about the replacement by images that
cufón does (which is the main reason why I was trying to use
Typeface.js.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to