如何使®标记具有与文本其余部分不同的行高? [英] How to make a ®-mark have a different line-height than the rest of the text?

查看:46
本文介绍了如何使®标记具有与文本其余部分不同的行高?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我对Expression Blend和Silverlight一般都很陌生,但我已经发现文本格式化选项有点缺乏。

Hi, all. I'm pretty new to Expression Blend and Silverlight in general, but already I'm finding the text formatting options a bit lacking.

例如:我正在尝试设计一个标题® -symbol用较小的字体*和*超级脚本。即< sup style =" font-size:7px;">®< / sup> -symbol应该更小,并从基线上移动一点。

For example: I'm trying to design a headline with the ®-symbol in a smaller font *and* super-scripted. I.e. the <sup style="font-size:7px;">®</sup>-symbol should be smaller and moved a bit up from the baseline.

我试过这个:



< TextBlock FontFamily =" Tahoma"字号= QUOT 18 QUOT; fontWeight设置= QUOT;粗体"前景= QUOT;白色" VerticalAlignment = QUOT;中心"保证金=" 20,0,0,0>>

  < Run Text =" PART 1" /><运行文字="®"字号= QUOT; 10" fontWeight设置= QUOT;正常"前景= QUOT;浅灰色" />< Run Text ="第2部分"/>

< / TextBlock>


<TextBlock FontFamily="Tahoma" FontSize="18" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" Margin="20,0,0,0">
  <Run Text="PART 1" /><Run Text="®" FontSize="10" FontWeight="Normal" Foreground="LightGray" /><Run Text=" PART 2"/>
</TextBlock>

 

它确实会创建一个更小的® -symbol但是无法向上或向下移动它。我也在研究< TextBox>但似乎更有限,我试过把< TextBlock>里面< TextBlock>但这是不允许的。

It does create a smaller ®-symbol but it's not possible to move it up or down. I'm also looking into <TextBox> but it seems even more limited and I've tried putting <TextBlock> inside <TextBlock> but that wasn't allowed.

 

还有其他选择吗?谢谢:)

Are there other options? Thank you :)

 

 

推荐答案

< TextBlock Horizo​​ntalAlignment =" Left"高度= QUOT; 34.5"余量= QUOT; 160,0,0,37" TextWrapping = QUOT;包覆与QUOT; VerticalAlignment = QUOT;底座" Width =" 33">< Span FontSize =" 17.3333333333333"的FontFamily = QUOT; Arial字体"
语言=" pt-br"><运行文字="®" />< / span>< / TextBlock>

   &NBSP; &NBSP;&NBSP;&NBSP; < TextBox Horizo​​ntalAlignment =" Left"高度= QUOT; 27"余量= QUOT; 200,0,0,49" TextWrapping = QUOT;包覆与QUOT;文本= QUOT;&章;" VerticalAlignment = QUOT;底座"宽度=" 46" />

   
<TextBlock HorizontalAlignment="Left" Height="34.5" Margin="160,0,0,37" TextWrapping="Wrap" VerticalAlignment="Bottom" Width="33"><Span FontSize="17.3333333333333" FontFamily="Arial" Language="pt-br"><Run Text="®"/></Span></TextBlock>
        <TextBox HorizontalAlignment="Left" Height="27" Margin="200,0,0,49" TextWrapping="Wrap" Text="®" VerticalAlignment="Bottom" Width="46"/>
   


这篇关于如何使®标记具有与文本其余部分不同的行高?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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