How to make a own Font Style for MFontManager

Results 1 to 4 of 4
  1. #1
    Be a kicker than cheater. cheaterastic is offline
    MemberRank
    Dec 2009 Join Date
    764Posts

    How to make a own Font Style for MFontManager

    How to make a own Font Style for MFontManager

    This what I mean
    Spoiler:
    pFont = MFontManager::Get("FONTa12_O1Red");
    That was from DrawEnemyName

    This is from Admin Grade
    pFont = MFontManager::Get("FONTa12_O1Org");

    From Text area
    pTextArea->SetFont( MFontManager::Get( "FONTa10b"));

    From the scoreboard
    MFontManager::Get("FONTb11b");

    I just need to make the
    MFontManager::Get("FONTb11b");
    to
    MFontManager::Get("FONTb12b");
    or to make the size from 11 to 12, how to make a own font ???


    THANKS ADVANCE.


  2. #2
    Valued Member aV3PQmCJjM9L is offline
    MemberRank
    Jun 2013 Join Date
    100Posts

    Re: How to make a own Font Style for MFontManager

    I saw it in Interface/default.mrs/templates.xml... not checked well.

  3. #3
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: How to make a own Font Style for MFontManager

    Quote Originally Posted by aV3PQmCJjM9L View Post
    I saw it in Interface/default.mrs/templates.xml... not checked well.
    for more info

    Quote Originally Posted by Phoenix View Post
    He's right. It's ../Interface/default/Templates.xml.

    Edit this part in the Templates.xml to some other font (must be a known one, found in the Control Panel's "Fonts" directory) & also edit the system.xml with the new font name.

    Code:
    <?xml version="1.0"?>
    <XML ID="Sample">
    	<Schema xmlns="MaietData" xmlns:dt="MaietDataTypes" />
    
    <!-- FONT -->
    	<FONTTEMPLATE item="FONTa9">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>9</FONTHEIGHT>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTa9b">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>9</FONTHEIGHT>
    		<BOLD/>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTa10">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>10</FONTHEIGHT>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTa10b">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>10</FONTHEIGHT>
    		<BOLD/>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTb10">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>10</FONTHEIGHT>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTb11b">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>11</FONTHEIGHT>
    		<BOLD/>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTa12_O1Red">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>12</FONTHEIGHT>
    		<OUTLINESTYLE>1</OUTLINESTYLE>
    		<BOLD/>
    		<ANTIALIASING/>
    		<COLORARG1>
    			<A>220</A>
    			<R>210</R>
    			<G>0</G>
    			<B>0</B>
    		</COLORARG1>
    		<COLORARG2>
    			<A>220</A>
    			<R>255</R>
    			<G>255</G>
    			<B>255</B>
    		</COLORARG2>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTa12_O1Blr">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>12</FONTHEIGHT>
    		<OUTLINESTYLE>1</OUTLINESTYLE>
    		<BOLD/>
    		<ANTIALIASING/>
    		<COLORARG1>
    			<A>220</A>
    			<R>0</R>
    			<G>0</G>
    			<B>210</B>
    		</COLORARG1>
    		<COLORARG2>
    			<A>220</A>
    			<R>255</R>
    			<G>255</G>
    			<B>255</B>
    		</COLORARG2>
    	</FONTTEMPLATE>
    	
    	<FONTTEMPLATE item="FONTa12_O1Org">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>12</FONTHEIGHT>
    		<OUTLINESTYLE>1</OUTLINESTYLE>
    		<BOLD/>
    		<ANTIALIASING/>
    		<COLORARG1>
    			<A>220</A>
    			<R>255</R>
    			<G>128</G>
    			<B>64</B>
    		</COLORARG1>
    		<COLORARG2>
    			<A>220</A>
    			<R>25</R>
    			<G>25</G>
    			<B>25</B>
    		</COLORARG2>
    	</FONTTEMPLATE>
    	
    	<FONTTEMPLATE item="FONTa10_O2Wht">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>10</FONTHEIGHT>
    		<BOLD/>
    		<OUTLINESTYLE>2</OUTLINESTYLE>
    		<COLORARG1>
    			<A>255</A>
    			<R>255</R>
    			<G>255</G>
    			<B>255</B>
    		</COLORARG1>
    		<COLORARG2>
    			<A>255</A>
    			<R>0</R>
    			<G>0</G>
    			<B>0</B>
    		</COLORARG2>
    	</FONTTEMPLATE>
    
    	<FONTTEMPLATE item="FONTc8b">
    		<FONTSET>Arial</FONTSET>
    		<FONTHEIGHT>8</FONTHEIGHT>
    		<BOLD/>
    	</FONTTEMPLATE>

  4. #4
    Be a kicker than cheater. cheaterastic is offline
    MemberRank
    Dec 2009 Join Date
    764Posts

    Re: How to make a own Font Style for MFontManager

    Quote Originally Posted by aV3PQmCJjM9L View Post
    I saw it in Interface/default.mrs/templates.xml... not checked well.
    Thanks.
    Yes it is from template.xml

    i check last time but i haven't noticed. ty



Advertisement