如何在C#中使用一个drawString方法绘制两种不同类型的字体? [英] how to draw two different type of font with one drawString method in C#?

查看:517
本文介绍了如何在C#中使用一个drawString方法绘制两种不同类型的字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想打印印度货币符号的卢比...

我用这段代码打印卢比: -

I want to print the rupees with Indian currency sign...
I print the rupees with this code:-

e.Graphics.DrawString(textBox14.Text, new Font("Arial", 11, FontStyle.Bold), Brushes.Black, 790, Ypos, new StringFormat(StringFormatFlags.DirectionRightToLeft));



和符号是: -


and Symbol is :-

e.Graphics.DrawString("`", new Font("Rupee Foradian", 11, FontStyle.Bold), Brushes.Black, 730, Ypos);





正确的结果将是第一卢比标志和卢比金额(如100美元,1000美元,10000美元)。 ..



如何在一个drawString方法中合并两种不同类型的字体(一种是Arial,另一种是Rupee Foradian),它将正确打印对齐??



提前感谢..



问候

Jayanta 。



the right result would be first Rupees sign and the rupees amount(like $100,$1000,$10000)...

How to merge two different types of font(one is "Arial" and another is "Rupee Foradian") in one drawString method and it will print with right alignment??

thanks in advance..

Regards
Jayanta.

推荐答案

100,


1000,


10000)...



如何合并两种不同类型的字体(一种是Arial,另一种是Rupee Foradian)在一个drawString方法中,它将以正确的对齐方式打印?



感谢提前..



问候

Jayanta。
10000)...

How to merge two different types of font(one is "Arial" and another is "Rupee Foradian") in one drawString method and it will print with right alignment??

thanks in advance..

Regards
Jayanta.


这篇关于如何在C#中使用一个drawString方法绘制两种不同类型的字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆