Selaa lähdekoodia

更换默认字体

zhaoyang 2 vuotta sitten
vanhempi
commit
921335becb

BIN
FGUIProject/assets/CommonGame/Font/ALIBABAPUHUITI-2-55-REGULAR.ttf


BIN
FGUIProject/assets/CommonGame/Font/STZHONGS.TTF


+ 1 - 1
FGUIProject/assets/CommonGame/package.xml

@@ -51,7 +51,6 @@
     <component id="9xlo8" name="ButtonBack1.xml" path="/components/" exported="true"/>
     <image id="lwri5v" name="hc_anniu_2.png" path="/imagesExport/" exported="true" scale="9grid" scale9grid="75,0,150,70"/>
     <image id="lwri5x" name="hc_btkuang_1.png" path="/images/" exported="true"/>
-    <font id="kst18" name="STZHONGS.TTF" path="/Font/" exported="true" renderMode="" samplePointSize="16"/>
     <component id="r9gf5z" name="ButtonInValueBar.xml" path="/components/"/>
     <component id="qp4l60" name="ButtonHome.xml" path="/components/" exported="true"/>
     <image id="pq5x64" name="kp_xingx.png" path="/imagesExport/" exported="true"/>
@@ -224,6 +223,7 @@
     <image id="ysx9tk7" name="kp_anniu_5.png" path="/images/"/>
     <image id="ysx9tka" name="dangance.png" path="/imgItemIcon/" exported="true"/>
     <image id="uyuxzx" name="xc_xzdik.png" path="/imagesExport/" exported="true" scale="9grid" scale9grid="137,19,274,38"/>
+    <font id="weoktkb" name="ALIBABAPUHUITI-2-55-REGULAR.ttf" path="/Font/" exported="true" renderMode="" samplePointSize="16"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 1 - 1
FGUIProject/assets/RoleInfo/components/Button2.xml

@@ -5,7 +5,7 @@
     <image id="n0_r9ri" name="n0" src="r9riy" fileName="images/xgxx_zytjtb.png" xy="0,0">
       <relation target="" sidePair="width-width,height-height"/>
     </image>
-    <text id="n1_r9ri" name="title" xy="113,29" size="227,42" fontSize="30" color="#a68659" align="center" vAlign="middle" singleLine="true" text="图鉴收集度:0%">
+    <text id="n1_r9ri" name="title" xy="113,29" size="220,42" font="ui://eg2y0ldpweoktkb" fontSize="30" color="#a68659" align="center" vAlign="middle" singleLine="true" text="图鉴收集度:0%">
       <relation target="" sidePair="width-width,height-height"/>
     </text>
   </displayList>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/ViewManager.cs

@@ -28,9 +28,9 @@ namespace GFGGame
         {
             GFGUIPackage.AddPackage(ResPathUtil.GetUIPackagePath("Common"));
             UIConfig.buttonSound = (NAudioClip)UIPackage.GetItemAsset("Common", "click");
-            Font afont = GFGAsset.Load<Font>(ResPathUtil.GetFontPath("STZHONGS"));
-            FontManager.RegisterFont(new DynamicFont("STZhongsong", afont));
-            UIConfig.defaultFont = "STZhongsong";
+            Font afont = GFGAsset.Load<Font>(ResPathUtil.GetFontPath("ALIBABAPUHUITI-2-55-REGULAR"));
+            FontManager.RegisterFont(new DynamicFont("ALIBABAPUHUITI-2-55-REGULAR", afont));
+            UIConfig.defaultFont = "ALIBABAPUHUITI-2-55-REGULAR";
             Font afont1 = GFGAsset.Load<Font>(ResPathUtil.GetFontPath("ZIHUN125"));
             FontManager.RegisterFont(new DynamicFont("ZIHUN125", afont1));
             Font afont2 = GFGAsset.Load<Font>(ResPathUtil.GetFontPath("SIMKAI"));

BIN
GameClient/Assets/ResIn/Font/ALIBABAPUHUITI-2-55-REGULAR.TTF


+ 22 - 0
GameClient/Assets/ResIn/Font/ALIBABAPUHUITI-2-55-REGULAR.TTF.meta

@@ -0,0 +1,22 @@
+fileFormatVersion: 2
+guid: d655a8a7c05c6a74eb47e7955fdf1a7d
+TrueTypeFontImporter:
+  externalObjects: {}
+  serializedVersion: 4
+  fontSize: 16
+  forceTextureCase: -2
+  characterSpacing: 0
+  characterPadding: 1
+  includeFontData: 1
+  fontNames:
+  - Alibaba PuHuiTi 2.0
+  fallbackFontReferences:
+  - {fileID: 12800000, guid: 8fbb9fd50bd513e49ab8c320077df10b, type: 3}
+  customCharacters: 
+  fontRenderingMode: 0
+  ascentCalculationMode: 1
+  useLegacyBoundsCalculation: 0
+  shouldRoundAdvanceValue: 1
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: