Information Technology Reference
In-Depth Information
CAUTION
Don't be confused by the fact you can set other fonts temporarily while editing a text field. When you confirm an
edit, Xcode 4 replaces any non-standard font with one of the defaults.
TIP
You can use non-standard fonts in an iOS project, but you must import them into the project bundle and load
them with special code. Non-standard font support isn't an IB feature, and the code can become complex, so it's
outside the scope of this topic.
Adding drop shadows and other text effects
The drop shadow effect in iOS is unimpressive. Because Core Image filters aren't supported, the drop shadow
isn't blurred, which makes the effect useless. However, you can use the Shadow feature to add a deboss
(chiseled) effect. Select the Shadow color picker, and use the default white color with 100 percent opacity, as
shown. Set the Shadow Offset settings as shown in Figure 7.19. This creates the extreme effect shown in the fig-
ure. For a more subtle effect, set both offsets closer to zero. To eliminate the effect, set the Opacity to 0 percent.
FIGURE 7.19
Creating a chiseled (deboss) effect with the Shadow color and Shadow Offset settings
Search WWH ::




Custom Search