feat(resources): 添加位图字体资源文件
添加 Ifont 位图字体资源,包含纹理图集、字体定义文件及元数据。 更新 UI 图片资源。
This commit is contained in:
14
assets/resources/language/Ifont.txt.fnt
Normal file
14
assets/resources/language/Ifont.txt.fnt
Normal file
@@ -0,0 +1,14 @@
|
||||
info aa=1 size=32 smooth=1 stretchH=100 bold=0 padding=0,0,0,0 spacing=1,1 charset="" italic=0 unicode=1 face="Arial" outline=0
|
||||
common lineHeight=32 base=26 scaleW=995 scaleH=411 pages=1 packed=0 alphaChnl=1 redChnl=0 greenChnl=0 blueChnl=0
|
||||
page id=0 file="Ifont0.png"
|
||||
chars count=10
|
||||
char id=65 x=5 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=170 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=335 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=500 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=665 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=830 y=5 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=5 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=170 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=335 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
char id=65 x=500 y=208 width=160 height=198 xoffset=0 yoffset=-83 xadvance=160 page=0 chnl=15
|
||||
33
assets/resources/language/Ifont.txt.fnt.meta
Normal file
33
assets/resources/language/Ifont.txt.fnt.meta
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"importer": "bitmap-font",
|
||||
"imported": true,
|
||||
"uuid": "2988f0d5-9eaa-4296-95e4-c1ab6cdd8d6c",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"_fntConfig": {
|
||||
"commonHeight": 32,
|
||||
"fontSize": 32,
|
||||
"atlasName": "Ifont0.png",
|
||||
"fontDefDictionary": {
|
||||
"65": {
|
||||
"rect": {
|
||||
"x": 500,
|
||||
"y": 208,
|
||||
"width": 160,
|
||||
"height": 198
|
||||
},
|
||||
"xOffset": 0,
|
||||
"yOffset": -83,
|
||||
"xAdvance": 160
|
||||
}
|
||||
},
|
||||
"kerningDict": {}
|
||||
},
|
||||
"fontSize": 32,
|
||||
"textureUuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817"
|
||||
}
|
||||
}
|
||||
20
assets/resources/language/Ifont.xml.fnt
Normal file
20
assets/resources/language/Ifont.xml.fnt
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<font>
|
||||
<info face="Arial" size="32" bold="0" italic="0" charset="" unicode="1" stretchH="100" smooth="1" aa="1" padding="0,0,0,0" spacing="1,1" outline="0"/>
|
||||
<common lineHeight="32" base="26" scaleW="995" scaleH="411" pages="1" packed="0" alphaChnl="1" redChnl="0" greenChnl="0" blueChnl="0"/>
|
||||
<pages>
|
||||
<page id="0" file="Ifont0.png"/>
|
||||
</pages>
|
||||
<chars count="10">
|
||||
<char id="65" x="5" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="170" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="335" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="500" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="665" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="830" y="5" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="5" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="170" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="335" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
<char id="65" x="500" y="208" width="160" height="198" xoffset="0" yoffset="-83" xadvance="160" page="0" chnl="15"/>
|
||||
</chars>
|
||||
</font>
|
||||
33
assets/resources/language/Ifont.xml.fnt.meta
Normal file
33
assets/resources/language/Ifont.xml.fnt.meta
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"ver": "1.0.6",
|
||||
"importer": "bitmap-font",
|
||||
"imported": true,
|
||||
"uuid": "d82c9fb1-aaa2-4fa0-8176-c877507b2f3d",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"_fntConfig": {
|
||||
"commonHeight": 32,
|
||||
"fontSize": 32,
|
||||
"atlasName": "Ifont0.png",
|
||||
"fontDefDictionary": {
|
||||
"65": {
|
||||
"rect": {
|
||||
"x": 500,
|
||||
"y": 208,
|
||||
"width": 160,
|
||||
"height": 198
|
||||
},
|
||||
"xOffset": 0,
|
||||
"yOffset": -83,
|
||||
"xAdvance": 160
|
||||
}
|
||||
},
|
||||
"kerningDict": {}
|
||||
},
|
||||
"fontSize": 32,
|
||||
"textureUuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817"
|
||||
}
|
||||
}
|
||||
BIN
assets/resources/language/Ifont0.png
Normal file
BIN
assets/resources/language/Ifont0.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 63 KiB |
134
assets/resources/language/Ifont0.png.meta
Normal file
134
assets/resources/language/Ifont0.png.meta
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"ver": "1.0.27",
|
||||
"importer": "image",
|
||||
"imported": true,
|
||||
"uuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817",
|
||||
"files": [
|
||||
".json",
|
||||
".png"
|
||||
],
|
||||
"subMetas": {
|
||||
"6c48a": {
|
||||
"importer": "texture",
|
||||
"uuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a",
|
||||
"displayName": "Ifont0",
|
||||
"id": "6c48a",
|
||||
"name": "texture",
|
||||
"userData": {
|
||||
"wrapModeS": "clamp-to-edge",
|
||||
"wrapModeT": "clamp-to-edge",
|
||||
"imageUuidOrDatabaseUri": "c3f96bca-d003-4aa8-8771-ab547a9ce817",
|
||||
"isUuid": true,
|
||||
"visible": false,
|
||||
"minfilter": "linear",
|
||||
"magfilter": "linear",
|
||||
"mipfilter": "none",
|
||||
"anisotropy": 0
|
||||
},
|
||||
"ver": "1.0.22",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
},
|
||||
"f9941": {
|
||||
"importer": "sprite-frame",
|
||||
"uuid": "c3f96bca-d003-4aa8-8771-ab547a9ce817@f9941",
|
||||
"displayName": "Ifont0",
|
||||
"id": "f9941",
|
||||
"name": "spriteFrame",
|
||||
"userData": {
|
||||
"trimThreshold": 1,
|
||||
"rotated": false,
|
||||
"offsetX": -4,
|
||||
"offsetY": -0.5,
|
||||
"trimX": 7,
|
||||
"trimY": 7,
|
||||
"width": 973,
|
||||
"height": 398,
|
||||
"rawWidth": 995,
|
||||
"rawHeight": 411,
|
||||
"borderTop": 0,
|
||||
"borderBottom": 0,
|
||||
"borderLeft": 0,
|
||||
"borderRight": 0,
|
||||
"packable": true,
|
||||
"pixelsToUnit": 100,
|
||||
"pivotX": 0.5,
|
||||
"pivotY": 0.5,
|
||||
"meshType": 0,
|
||||
"vertices": {
|
||||
"rawPosition": [
|
||||
-486.5,
|
||||
-199,
|
||||
0,
|
||||
486.5,
|
||||
-199,
|
||||
0,
|
||||
-486.5,
|
||||
199,
|
||||
0,
|
||||
486.5,
|
||||
199,
|
||||
0
|
||||
],
|
||||
"indexes": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
2,
|
||||
1,
|
||||
3
|
||||
],
|
||||
"uv": [
|
||||
7,
|
||||
404,
|
||||
980,
|
||||
404,
|
||||
7,
|
||||
6,
|
||||
980,
|
||||
6
|
||||
],
|
||||
"nuv": [
|
||||
0.007035175879396985,
|
||||
0.014598540145985401,
|
||||
0.9849246231155779,
|
||||
0.014598540145985401,
|
||||
0.007035175879396985,
|
||||
0.9829683698296837,
|
||||
0.9849246231155779,
|
||||
0.9829683698296837
|
||||
],
|
||||
"minPos": [
|
||||
-486.5,
|
||||
-199,
|
||||
0
|
||||
],
|
||||
"maxPos": [
|
||||
486.5,
|
||||
199,
|
||||
0
|
||||
]
|
||||
},
|
||||
"isUuid": true,
|
||||
"imageUuidOrDatabaseUri": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a",
|
||||
"atlasUuid": "",
|
||||
"trimType": "auto"
|
||||
},
|
||||
"ver": "1.0.12",
|
||||
"imported": true,
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {}
|
||||
}
|
||||
},
|
||||
"userData": {
|
||||
"type": "sprite-frame",
|
||||
"hasAlpha": true,
|
||||
"fixAlphaTransparencyArtifacts": false,
|
||||
"redirect": "c3f96bca-d003-4aa8-8771-ab547a9ce817@6c48a"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user