font-style

WPF: Cutting the part of the last letter in textblock when FontStyle is Oblique

狂风中的少年 提交于 2020-01-06 04:28:15
问题 I have a simple XAML example: <Grid> <Button x:Name="button1" FontSize="28" FontWeight="Bold" FontStyle="Oblique" HorizontalContentAlignment="Center" Margin="296,142,296,249"> <TextBlock Width="Auto" Text="button" Padding="0" VerticalAlignment="Center"/> </Button> <Button x:Name="button2" Content="button" FontSize="28" FontWeight="Bold" FontStyle="Oblique" Margin="296,234,282,146" /> </Grid> If height of any button will changed in design mode (or added and changed property Height in xaml),

How to only make one legend name italic in base R plot?

。_饼干妹妹 提交于 2019-12-19 10:17:40
问题 I want to add a legend to a plot in which only one of the legend names is italicized . I'm using plot() in base R. However, I need that italicized line to contain variable numbers, so I use bquote . What I've tried does not work: a <- 2 ; b <- 5 plot(a,b) l1 <- bquote(Italic ~ .(a) + .(b)) l2 <- bquote(a + b) legend(x='topright',legend = bquote(italic(.(l1)))) legend(x='topleft',legend = c(bquote(italic(.(l1))),l2)) Notice that when I leave the expression on its own (RIGHT LEGEND), it