From 78adb7aa6ccd4bfe8924d08ac655b325f32d7562 Mon Sep 17 00:00:00 2001 From: Ian C <ianc@noddybox.co.uk> Date: Tue, 1 May 2012 22:30:05 +0000 Subject: Working version of the XNA keyboard. --- .../KeyboardTestContent/Courier New.spritefont | 52 ++++++++++++++++++++++ .../KeyboardTestContent.contentproj | 7 +++ 2 files changed, 59 insertions(+) create mode 100644 WindowsPhone/KeyboardTest/KeyboardTestContent/Courier New.spritefont (limited to 'WindowsPhone/KeyboardTest/KeyboardTestContent') diff --git a/WindowsPhone/KeyboardTest/KeyboardTestContent/Courier New.spritefont b/WindowsPhone/KeyboardTest/KeyboardTestContent/Courier New.spritefont new file mode 100644 index 0000000..ebefa68 --- /dev/null +++ b/WindowsPhone/KeyboardTest/KeyboardTestContent/Courier New.spritefont @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +This file contains an xml description of a font, and will be read by the XNA +Framework Content Pipeline. Follow the comments to customize the appearance +of the font in your game, and to change the characters which are available to draw +with. +--> +<XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics"> + <Asset Type="Graphics:FontDescription"> + + <!-- + Modify this string to change the font that will be imported. + --> + <FontName>Courier New</FontName> + + <!-- + Size is a float value, measured in points. Modify this value to change + the size of the font. + --> + <Size>28</Size> + + <!-- + Spacing is a float value, measured in pixels. Modify this value to change + the amount of spacing in between characters. + --> + <Spacing>2</Spacing> + + <!-- + Style controls the style of the font. Valid entries are "Regular", "Bold", "Italic", + and "Bold, Italic", and are case sensitive. + --> + <Style>Regular</Style> + + <!-- + CharacterRegions control what letters are available in the font. Every + character from Start to End will be built and made available for drawing. The + default range is from 32 to 127, which is the basic Latin character set. The + characters are ordered according to the Unicode standard. + Change these regions to make more or fewer letters available. To save + graphics memory and decrease build time, try to use as few letters as possible. + You can specify additional regions by adding more <CharacterRegion> tags. + Alternatively, you can use a custom processor to add specific characters. See + the documentation for more information. + --> + <CharacterRegions> + <CharacterRegion> + <Start> </Start> + <End>~</End> + </CharacterRegion> + </CharacterRegions> + </Asset> +</XnaContent> \ No newline at end of file diff --git a/WindowsPhone/KeyboardTest/KeyboardTestContent/KeyboardTestContent.contentproj b/WindowsPhone/KeyboardTest/KeyboardTestContent/KeyboardTestContent.contentproj index 3ed205e..390995e 100644 --- a/WindowsPhone/KeyboardTest/KeyboardTestContent/KeyboardTestContent.contentproj +++ b/WindowsPhone/KeyboardTest/KeyboardTestContent/KeyboardTestContent.contentproj @@ -36,6 +36,13 @@ <Processor>TextureProcessor</Processor> </Compile> </ItemGroup> + <ItemGroup> + <Compile Include="Courier New.spritefont"> + <Name>Courier New</Name> + <Importer>FontDescriptionImporter</Importer> + <Processor>FontDescriptionProcessor</Processor> + </Compile> + </ItemGroup> <Import Project="$(MSBuildExtensionsPath)\Microsoft\XNA Game Studio\$(XnaFrameworkVersion)\Microsoft.Xna.GameStudio.ContentPipeline.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. -- cgit v1.2.3