Hello Tristan,
I just tried it out: first I installed the new Bravura font under Windows. Then, after selecting the font I could easily write out unicodes like string text = "\ue0a2"; for a whole's note head on a DrawingContext instance (approximately; my program has the these lines distributed in some methods): Typeface typeface = new Typeface("Bravura"); FormattedText formattedText = new FormattedText(text, CultureInfo.GetCultureInfo("en-us"), FlowDirection.LeftToRight, typeface, size, Brushes.Black); Point p = createPoint(x, y); // my position mapping function drawingContext.DrawText(formattedText, p); Cheers, Patrick. -----Ursprüngliche Nachricht----- Von: SMuFL Discussion [mailto:[hidden email]] Im Auftrag von Tristan Labelle Gesendet: Freitag, 27. Juni 2014 20:03 An: SMuFL Discussion Betreff: [smufl-discuss] Re: Using Bravura in .NET applications I don't know about GDI+ and System.Drawing.Font, but I've had some success using the .otf font via Direct2D/DirectWrite, as exposed by the SharpDX .NET bindings. It's a bit more work to get going with the DirectX APIs, but it works nicely. Tristan Labelle [hidden email] On Fri, Jun 27, 2014 at 2:48 PM, John Aldridge [via smufl-discuss] < [hidden email]> wrote: > Hello, > > I wanted to write a Microsoft .NET application (for personal use, at > least for now), which involves displaying music notation. A quick > Google for something suitable found SMuFL & Bravura, which seemed > ideal for the purpose. > > However, it seems as if Bravura is not compatible with the .NET > System.Drawing.Font class (whose documentation says "Windows Forms > applications support TrueType fonts and have limited support for > OpenType fonts"). > > Does anyone know a workround for this problem? Is there, for example, > a TrueType version of Bravura? > > -- > Cheers, > John > > ############################################################# > This message is sent to you because you are subscribed to > the mailing list <[hidden email] > <http://user/SendEmail.jtp?type=node&node=528&i=0>>. > To unsubscribe, E-mail to: <[hidden email] > <http://user/SendEmail.jtp?type=node&node=528&i=1>> > To switch to the DIGEST mode, E-mail to <[hidden email] > <http://user/SendEmail.jtp?type=node&node=528&i=2>> > To switch to the INDEX mode, E-mail to <[hidden email] > <http://user/SendEmail.jtp?type=node&node=528&i=3>> > Send administrative queries to <[hidden email] > <http://user/SendEmail.jtp?type=node&node=528&i=4>> > > > > ------------------------------ > If you reply to this email, your message will be added to the > discussion > below: > > http://smufl-discuss.50501.x6.nabble.com/smufl-discuss-Using-Bravura-i > n-NET-applications-tp528.html To unsubscribe from smufl-discuss, > click here > <http://smufl-discuss.50501.x6.nabble.com/template/NamlServlet.jtp?mac > ro=unsubscribe_by_code&node=1&code=dHJpc3RhbmxhYmVsbGVAZ21haWwuY29tfDF > 8MTI2Mjg3MTk1OQ==> > . > NAML > <http://smufl-discuss.50501.x6.nabble.com/template/NamlServlet.jtp?mac > ro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml > .namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-na > bble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21 > nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_ > email%21nabble%3Aemail.naml> > -- View this message in context: http://smufl-discuss.50501.x6.nabble.com/Re-smufl-discuss-Using-Bravura-in-NET-applications-tp530.html Sent from the smufl-discuss mailing list archive at Nabble.com. ############################################################# This message is sent to you because you are subscribed to the mailing list <[hidden email]>. To unsubscribe, E-mail to: <[hidden email]> To switch to the DIGEST mode, E-mail to <[hidden email]> To switch to the INDEX mode, E-mail to <[hidden email]> Send administrative queries to <[hidden email]> ############################################################# This message is sent to you because you are subscribed to the mailing list <[hidden email]>. To unsubscribe, E-mail to: <[hidden email]> To switch to the DIGEST mode, E-mail to <[hidden email]> To switch to the INDEX mode, E-mail to <[hidden email]> Send administrative queries to <[hidden email]> |
Free forum by Nabble | Edit this page |