Page 1 of 1

Fonts

Posted: Sat Jan 18, 2014 9:15 pm
by WarHunter
Is it possible to change the Font for the numbers and or letters on the counters for Land and Air units?

So far i have been unable to do so as a permanent change.

Is there a secret code?

RE: Fonts

Posted: Sun Jan 26, 2014 1:36 am
by Shannon V. OKeets
ORIGINAL: WarHunter

Is it possible to change the Font for the numbers and or letters on the counters for Land and Air units?

So far i have been unable to do so as a permanent change.

Is there a secret code?
No.

No.

The programming wasn't easy. Because of the different zoom levels, the program figures out what will fit. Some of the text needs to be rotated 90 degrees. The whole thing was a pain to code. There is an internal file which has all the fonts and sizes defined.

===
// ****************************************************************************
// For all unit types.
// ****************************************************************************
DrawUnitStatus: Boolean = True; // Whether to draw unit status indicators.
RefreshingMapArea: Boolean = False; // Whether clearing background for units.
UnitSizeControl: Integer = 4; // 1: variable, 2: medium, 3: large, 4: on map.
UnitSizeZoomLevel: Integer = 3; // Equals SVZoomLevel - 1
USzFontSize: Integer = 16; // Font size for air unit #s - high res.
USzFontSizeMed: Integer = 24; // Font size for air unit #s - medium res.
USzFontSizeA1: Integer = 12; // Font size for air unit's offical name
USzFontSizeA2: Integer = 10; // Font size for air unit's Known As name
USzFontSizeN2: Integer = 10; // Font size for naval unit names.
USzFontSizeA3: Integer = 16; // Font size for air unit #s - high res.
USzFontSizeA3Med: Integer = 22; // Font size for air unit #s - med res.
USzFontSizeN1: Integer = 18; // Font size for naval unit #s - high res.
USzFontSizeN1Med: Integer = 22; // Font size for naval unit #s - med res.
USzFontSizeL1: Integer = 10; // Font size for land unit's name, XXX & abbrev.
USzFontSizeL2: Integer = 14; // Font size for NATO letter (M & T)
USzFontSizeL3: Integer = 20; // Font size: land unit #s - high res.
USzFontSizeL3Med: Integer = 24; // Font size: land combat strength - med
USzFontSizeL4: Integer = 12; // Font size for land unit R
USzBoxWidth: Integer = 16; // Width of status boxes
USzSquareOffX: Integer = 4; // X offest for # in unit square
USzSquareOffY: Integer = 2; // Y offest for # in unit square
// ****************************************************************************
// For air unit types - DrawGeneric
// ****************************************************************************
USzAirIconOffX: Integer = 4; // X offest for air unit icon, normal
USzAirIconOffXNN: Integer = 14; // X offest for air unit icon, not normal
USzAirIconOffY: Integer = 30; // Y offest for air unit icon
USzAirTextOffX: Integer = 30; // X offest for air unit text, normal
USzAirTextOffXNN: Integer = 40; // X offest for air unit text, not normal
USzAirTextOffY: Integer = 32; // Y offest for air unit text
USzAirNameOffX: Integer = 22; // X offest for air unit circle, normal
USzAirNameOffXNN: Integer = 36; // X offest for air unit circle, not normal
USzAirNameOffY: Integer = 38; // Y offest for air unit circle
USzAirCircOffX: Integer = 22; // X offest for air unit circle, normal
USzAirCircOffY: Integer = 38; // Y offest for air unit circle
// ****************************************************************************
// For air unit types - Draw
// ****************************************************************************
USzAirXLeftOff: Integer = 2; // XLeft offset for air units
USzAirXRightOff: Integer = 94; // XRight offset for air units
USzAirYTopOff: Integer = 2; // XTop offset for air units
USzAirYBottomOff: Integer = 94; // XBottom offset for air units
USzAirXRangeOff: Integer = 6; // X bottom range offset for air units
USzAirXSideOff: Integer = 1; // X side range offset for air units
USzAirYSideOff: Integer = 2; // Y side range offset for air units
USzAirXRCircleOff: Integer = 6; // X offset for right side air circles
USzAirXTopCenterOff: Integer = 4; // X offset for top center of air units
USzFighterAbbrevXOff: Integer = 92; // X offset for 3 letter country abbrev.
USzBomberAbbrevXOff: Integer = 4; // X offset for 3 letter country abbrev.
USzNavAirAbbrevXOff: Integer = 4; // X offset for 3 letter country abbrev.
USzNavAirAbbrevYOff: Integer = 22; // Y offset for 3 letter country abbrev.
// ****************************************************************************
// For naval unit types - DrawGeneric
// ****************************************************************************
USzNavIconOffX: Integer = 20; // X offest for naval unit icon
USzNavIconOffY: Integer = 30; // Y offest for naval unit icon
USzNavTextOffX: Integer = 32; // X offest for naval unit text
USzNavTextOffY: Integer = 38; // Y offest for naval unit text
USzNavCircOffX: Integer = 86; // X offest for naval unit circle, convoy
USzNavCircOffY: Integer = 38; // Y offest for naval unit circle
// ****************************************************************************
// For naval unit types - Draw
// ****************************************************************************
USzNavXLeftOff: Integer = 4; // XLeft offset for naval units
USzNavXRightOff: Integer = 92; // XRight offset for naval units
USzNavYTopOff: Integer = 2; // XTop offset for naval units
USzNavYBottomOff: Integer = 94; // XBottom offset for naval units
USzNavXRangeOff: Integer = 4; // X range offset for naval units
USzNavXCircleOff: Integer = 6; // X offset for right side naval square
USzNavYCircleOff: Integer = 22; // Y offset for right side naval square
USzNavalAbbrevXOff: Integer = 4; // Left X offset for 3 letter abbrev.
USzNavalAbbrevXOffRight: Integer = 64; // Right X offset for 3 letter abbrev.
USzNavalAbbrevYOff: Integer = 22; // Y offset for 3 letter country abbrev.
// ****************************************************************************
// For land unit types - DrawGeneric.
// ****************************************************************************
USzLandIconOffX: Integer = 24; // X offest for land unit icon.
USzLandIconOffXMot: Integer = 27; // X offest for land unit icon - motorized.
USzLandIconOffXSup: Integer = 29; // X offest for land unit icon - supply.
USzLandIconOffY: Integer = 22; // Y offest for land unit icon.
USzLandIconOffYMed: Integer = 14; // Y offest for land unit icon - medium.
USzLandTextOffX: Integer = 48; // X offest for land unit XXX text.
USzLandTextOffY: Integer = 6; // Y offest for land unit XXX text.
USzLandResOffX: Integer = 78; // X offest for land unit reserve.
USzLandResOffY: Integer = 6; // Y offest for land unit reserve.
// ****************************************************************************
// For land unit types - Draw.
// ****************************************************************************
USzHQOffX: Integer = 2; // X offset for HQ unit names.
USzLandXStart: Integer = 48; // X offset for land units.
USzLandXCStart: Integer = 8; // X offset for circle for land units.
USzLandYStart: Integer = 62; // Y offset for land units - high res.
USzLandYStartMed: Integer = 54; // Y offset for land units - medium res.
USzLandXText: Integer = 9; // X offset for text for land units.
USzLandXLetter: Integer = 16; // X offset for militia letter.
USzLandXLetter2: Integer = 19; // X offset for partisan/territorial letter.
USzLandYLetter: Integer = 8; // Y offset for militia/partisan letter.
USzLandXWheel1: Integer = 6; // X offset for 1st wheel.
USzLandXWheel2: Integer = 28; // X offset for 2nd wheel.
USzLandYWheel: Integer = 28; // Y offset for both wheels.
// ****************************************************************************
// For special unit types - Draw.
// ****************************************************************************
USzSpecIconOffX: Integer = 28; // X offest for special unit icon.
USzSavedPtsIconOffX: Integer = 24; // X offest for saved points icon.
USzSpecIconOffY: Integer = 28; // Y offest for special unit icon.
USzSavedPtsIconOffY: Integer = 40; // Y offest for saved points icon.
USzSpecTextOffX: Integer = 48; // X offest for special unit text.
USzSpecTextOffYFort: Integer = 48; // Y offest for fort text.
USzSpecTextOffYHigh: Integer = 2; // Y offest for other special unit text.
// ****************************************************************************
CurrUnitColor: TColor; // Basic color for the current unit.
CurrSourceUnitColor: TColor; // Source country color for current unit.
CurrIconColor: TColor; // Icon/NATO symbol color for controlling country.
CurrSourceIconColor: TColor; // Icon/NATO symbol color for source country.
CurrLandIconFColor: TColor; // Land unit NATO symbol outline color.
CurrLandIconBColor: TColor; // Land unit NATO symbol interior color.
CurrTextColor1: TColor; // Current unit color for text 1.
CurrSourceTextColor1: TColor; // Source country color for text 1.
CurrTextColor2: TColor; // Current unit color for text 2.
CurrTextColor3: TColor; // Current unit color for text 3.
CurrOutlineElite: Boolean;
CurrNavalTopTextColor1: TColor; // Text color for top naval factors.
CurrLandOutlineElite: Boolean; // Outline color for top naval factors.
// ****************************************************************************