Im goofing around with XNA and I came to the part where I need to download the font. Easy enough?
Font1 = Content.Load<SpriteFont>("Arial");
I use the code to download the font.
<?xml version="1.0" encoding="utf-8"?> <XnaContent xmlns:Graphics="Microsoft.Xna.Framework.Content.Pipeline.Graphics"> <Asset Type="Graphics:FontDescription"> <FontName>Arial</FontName> <Size>14</Size> <Spacing>0</Spacing> <UseKerning>true</UseKerning> <Style>Regular</Style> <CharacterRegions> <CharacterRegion> <Start> </Start> <End>~</End> </CharacterRegion> </CharacterRegions> </Asset> </XnaContent>
is a spritefont im file using. its located in Content / Arial.spritefont.
No matter which font I choose, it cannot load this font.
Error loading "Arial". File not found.
c # xna
castis
source share