I would go even simpler (there are probably syntax mistakes in this, but
you get the idea)

<html>
<body>
<p>this is my text<p>
<p><span style="font-family: arial; font-size: 14px; font-weight: bold">
this is more text in a different font
</span>
<span style="color: red">this more text, but colored!</span>
</p>
</body>
</html>

if you're still stuck feel free to send me an example of what you're
working on and I'll try to help

On Thu, Sep 6, 2012 at 4:17 PM, Chris_M <[email protected]> wrote:

> Thanks, Jason.
>
> To be honest, embedded css is kind of new territory for me, although it
> *seems* like it ought to be the path of least resistance. I have tried
> something along the lines in this example:
> http://www.blooberry.com/indexdot/css/examples/cssembedded.htm Embedded
> CSS
> Example .
>
> Now, what I tried is much simpler than that (I'd post the code, but it's
> all
> messed up at this exact moment), but I get "Unexpected Symbol [...],
> expecting identifier" error messages pretty much with every CSS element.
> That's why I was hoping there might be a simple example online somewhere
> that is known to work in MonoTouch that I could look at. Really, just
> seeing
> a MonoTouch-friendly example that sets the font to a particular size and
> typeface would be a huge help.
>
>
> --Chris
>
>
> jawbrey wrote
> >
> > Just using html with embedded css should do the trick.  Can you post a
> > sample of what you're doing and why it doesn't work?
> >
> > On Thu, Sep 6, 2012 at 3:32 PM, Chris_M <kungfuchris99@> wrote:
> >
> >>
> >> I have a page of dynamically generated data and text (pulled from a
> >> database
> >> and parsed) to display. The formatting isn't going to be fancy -- I need
> >> to
> >> set the font, have some bold text some plain text, change the font color
> >> in
> >> a few places, and control the line spacing some. A UIWebView should do
> >> the
> >> trick, but I haven't been able to get the font stuff to work the way it
> >> should when building a web page.
> >>
> >> I Googled for help, but I just a ton of responses that aren't helpful.
> >> Can
> >> someone point me in the direction of a simple example online of what I'm
> >> looking for that changes or sets the actual font, changes the font size,
> >> changes the font color, like that?
> >>
> >> TIA
> >>
> >>
> >> --Chris
> >
> > _______________________________________________
> > MonoTouch mailing list
> > [email protected]
> > http://lists.ximian.com/mailman/listinfo/monotouch
> >
>
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Need-Simple-UIWebView-Example-to-Format-Text-tp4656902p4656905.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to