smallcaps

SwiftUI Font smallCaps() not working with italic()

时光总嘲笑我的痴心妄想 提交于 2021-01-28 05:22:26
问题 extension Font { public static let Heading1: Font = system(size: 34, weight: .black, design: .default) .smallCaps() .italic() } I can make the font all caps OR italic - but not both. Anybody know how to get around this? Without typing the String out in caps to begin with. I even tried importing BlackItalic as a custom font and still had the same issue. 回答1: None of Apple platform built-in font support both italic-smallcap features combination. System San Francisco is the most font-feature

iOS: Exclude digits from the effects of small caps

こ雲淡風輕ζ 提交于 2020-12-15 05:45:30
问题 I'm applying small caps to lower case letters, but it appears that it also includes all digits. This is also true when I apply it only to uppercase letters. Is there any way to exclude digits from the effect of small caps (like the label for wind speed/direction in the stock Weather app), or do I need to resort to an attributed string for that effect? Currently I'm just applying a font to all label content: extension UIFont { func smallCaps() -> UIFont { let settings: [[UIFontDescriptor

Why is my small-caps font-variant CSS class being disregarded?

孤街醉人 提交于 2019-12-10 20:14:13
问题 I added this CSS class: .beanies { font-variant: small-caps; } I call it from a couple places, coupled with another class, trying it both this way: <p class="coolPools beanies">LICENSE #764014</p> ...and this: <h3 class="statelyPresence, beanies">NEW POOL LAW REQUIRES IMMEDIATE ACTION AT ALL APARTMENT AND CONDOMINIUM POOLS AND SPAS</h3> (IOW, with or without a separating comma between the two classes I'm applying to the element) ...and in neither case does the text display in small caps. What

WPF/XAML: Typography.Capitals seems to have no effect

好久不见. 提交于 2019-12-07 03:21:09
问题 All of these bits of text look the same, but I am trying to get them to look different. I want small caps text. What am I missing here to get the small caps typography effect to work? To reproduce this, open Visual Studio 2008, Do File|New Project, create a new Windows|WPF application, paste the mark-up below into Window1.xaml, then run it. <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx

No support for font-feature-settings in Safari?

时光毁灭记忆、已成空白 提交于 2019-12-06 08:43:13
问题 Trying to use font-feature-settings , I get successful result in all major browsers but Safari (neither desktop nor mobile). I use this syntax: .smallcaps { font-feature-settings: 'smcp' 1; -webkit-font-feature-settings: 'smcp' 1; -moz-font-feature-settings: 'smcp' 1; } Does Safari not support font-feature-settings , or do I something wrong? If there still is support for OpenType features in Safari, I’d like to see a live example. 回答1: According to MDN info, font-feature-settings is not

WPF/XAML: Typography.Capitals seems to have no effect

与世无争的帅哥 提交于 2019-12-05 07:30:25
All of these bits of text look the same, but I am trying to get them to look different. I want small caps text. What am I missing here to get the small caps typography effect to work? To reproduce this, open Visual Studio 2008, Do File|New Project, create a new Windows|WPF application, paste the mark-up below into Window1.xaml, then run it. <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <FlowDocumentReader> <FlowDocument>