Skip to content

Instantly share code, notes, and snippets.

@synctam
Last active September 26, 2018 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synctam/c9e7a32164b26ae89107f89599e458f3 to your computer and use it in GitHub Desktop.
Save synctam/c9e7a32164b26ae89107f89599e458f3 to your computer and use it in GitHub Desktop.
韓国語版のフォントの座標情報を調査した時の資料です。
offset size description
--------- ---- ---------------------------------
0000:0000 (04) 00000000(0) GameObject.FileID
0000:0004 (08) 00000000(0) GameObject.PathID
0000:0008 (--) 00000000
0000:000C (04) 01000000(1) GameObject.Enabled
0000:0010 (04) 01000000( 1) Script.FileID
0000:0014 (08) 7D070000(1917) Script.PathID
0000:0018 (--) 00000000
0000:001C (04) 11000000(17) Length of font name.
0000:0020 (17) 4E414E55 NANU
0000:0024 (--) 4D4D5945 MMYE
0000:0028 (--) 4F4E474A ONGJ
0000:002C (--) 4F205344 O SD
0000:0030 (--) 46 F
0000:0031 (03) 000000 ... Padding?
0000:0034 (04) 7A6D31A8(-1473155718) Hash code.
0000:0038 (04) 00000000( 0) Mterial.FileID
0000:003C (08) 2A000000(42) Mterial.PathID
0000:0040 (--) 00000000
0000:0044 (04) B10EA4CC(-861663567) Material hash code.
0000:0048 (04) 01000000( 1) Font asset type.
0000:004C (04) 0D000000( 13) Length of font name. (fontInfo.Name)
0000:0050 (13) 4E616E75 Nanu
0000:0054 (--) 6D4D7965 mMye
0000:0058 (--) 6F6E676A ongj
0000:005C (--) 6F o
0000:005D (03) 000000 ... Padding?
0000:0060 (04) 00000042( 32.0) [float] FontInfo.Point size.
0000:0064 (04) 0000803F( 1.0) [float] FontInfo.Scale
0000:0068 (04) BD2C0000( 11453) [int] FontInfo.Character count.
0000:006C (04) 00401342( 36.8125) [float] FontInfo.Line height
0000:0070 (04) 00000000( 0.0) [float] FontInfo.Base line.
0000:0074 (04) 0080EB41( 29.4375) [float] FontInfo.Ascender.
0000:0078 (04) 0000BD41( 23.625) [float] FontInfo.Cap height.
0000:007C (04) 0000ECC0( -7.375) [float] FontInfo.Descender.
0000:0080 (04) 00000000( 0.0) [float] FontInfo.Center line.
0000:0084 (04) 0080EB41( 29.4375) [float] FontInfo.Super script offset.
0000:0088 (04) 00800EC1(-8.90625) [float] FontInfo.Sub script offset.
0000:008C (04) 0000003F( 0.5) [float] FontInfo.Sub size.
自作フォントではここに次の2項目が追加されていた。TextMesh Pro のバージョンが異なるからか?
--- ここから -----------------------------------------------------------------
0000:00xx (04) 175D0C41(8.772727) [float] FontInfo.StrikeThrough
0000:00xx (04) CDCCCC3F( 1.6) [float] FontInfo.StrikeThroughThickness
--- ここまで -----------------------------------------------------------------
0000:0090 (04) 00800EC1(-8.90625) [float] FontInfo.Underline.
0000:0094 (04) 0000C83F( 1.5625) [float] FontInfo.Underline thickness.
0000:0098 (04) 0080C042( 96.25) [float] FontInfo.Tab width.
0000:009C (04) 00008040( 4.0) [float] FontInfo.Padding.
0000:00A0 (04) 00008045( 4096.0) [float] FontInfo.Atlas width.
0000:00A4 (04) 00008045( 4096.0) [float] FontInfo.Atlas height.
0000:00A8 (04) 00000000( 0) Atlas.FileID.
0000:00AC (08) 5D000000( 93) Atlas.PathID.
0000:00B0 (--) 00000000
0000:00B4 (04) 242C0000(11300) 登録文字数
------------------------------------------------------
0000:00B8 (04) 20000000( 32) Character-id. U+0020( ):スペース
0000:00BC (04) 0000A040( 5.0) [float] x
0000:00C0 (04) 00208045( 4100.0) [float] y
0000:00C4 (04) 00001A41( 9.625) [float] width
0000:00C8 (04) 00401342(36.8125) [float] height
0000:00CC (04) 00000000( 0.0) [float] x-offset
0000:00D0 (04) 0080EB41(29.4375) [float] y-offset
0000:00D4 (04) 00001A41( 9.625) [float] x-Advance
0000:00D8 (04) 0000803F( 1.0) [float] Scale
------------------------------------------------------
0000:00DC (04) 13200000( 8211) u+2013(?):ダッシュ(記号)
0000:00E0 (04) 0020B744
0000:00E4 (04) 00101F45
0000:00E8 (04) 00008641
0000:00EC (04) 0000C83F
0000:00F0 (04) 0000D440
0000:00F4 (04) 00003E41
0000:00F8 (04) 0080F341
0000:00FC (04) 0000803F
------------------------------------------------------
0000:0100 (04) 14200000( 8210) u+2014(?):ダッシュ(記号)
0000:0104 (04) 0080F943
0000:0108 (04) 00501F45
0000:010C (04) 0080D841
0000:0110 (04) 0000C83F
0000:0114 (04) 0000D03F
0000:0118 (04) 00003E41
0000:011C (04) 0080F341
0000:0120 (04) 0000803F
------------------------------------------------------
0000:0124 (04) 18200000( 8260) u+2018(‘)
0000:0128 (04) 0020C644
0000:012C (04) 0000DD44
0000:0130 (04) 00008240
0000:0134 (04) 0000F840
0000:0138 (04) 00005840
0000:013C (04) 0080D741
0000:0140 (04) 00001441
0000:0144 (04) 0000803F
------------------------------------------------------
0000:0148 (04) 19200000( 8217) U+2019(’)
0000:014C (04) 00E0C744
0000:0150 (04) 0000DD44
0000:0154 (04) 00008440
0000:0158 (04) 0000F640
0000:015C (04) 0000D03F
0000:0160 (04) 0080D441
0000:0164 (04) 00001441
0000:0168 (04) 0000803F
------------------------------------------------------
以下、これの繰り返し
ここから下はファイルの末尾
------------------------------------------------------
0006:3580 (04) A2D70000(55202) U+d7a3(?)
0006:3584 (04) 00B03845
0006:3588 (04) 00A02645
0006:358C (04) 0000C941
0006:3590 (04) 0080EA41
0006:3594 (04) 00000C40
0006:3598 (04) 0000D441
0006:359C (04) 0080F341
0006:35A0 (04) 0000803F
------------------------------------------------------
0006:35A4 (04) A3D70000(55203) U+d7a3(?) 登録されている最後の文字
0006:35A8 (04) 00809E44
0006:35AC (04) 00003842
0006:35B0 (04) 0000CD41
0006:35B4 (04) 0000F341
0006:35B8 (04) 00000040
0006:35BC (04) 0000D441
0006:35C0 (04) 0080F341
0006:35C4 (04) 0000803F
------------------------------------------------------
0006:35C8 (04) 00000000( 0) KerningInfo.KerningPairs.size
0006:35CC (04) 00000000( 0) KerningPair.AscII_Left
0006:35D0 (04) 00000000( 0) KerningPair.AscII_Right
0006:35D4 (04) 00000000(0.0) KerningPair.XadvanceOffset
0006:35D8 (04) 00000000( 0) Ligatures.FileID
0006:35DC (08) 00000000( 0) Ligatures.PathID
0006:35E0 (--) 00000000
0006:35E4 (04) BEF10000(61886) InumStartAt
0006:35E8 (04) 00000000( 0) isIlluminated
0006:35EC (04) 01000000( 1) Num of FallbackFontAssets.size
0006:35F0 (04) 00000000( 0) FallbackFontAssets[0].Data.FileID
0006:35F4 (08) 59020000( 601) FallbackFontAssets[0].Data.PathID
0006:35F8 (--) 00000000
0006:35FC (04) 00000000( 0) FontSourcePath Length
0006:3600 (04) 00000000( 0) fontCreationSettings.fontSizeMode
0006:3604 (04) 00000000( 0) fontCreationSettings.fontSize
0006:3608 (04) 00000000( 0) fontCreationSettings.fontPadding
0006:360C (04) 00000000( 0) fontCreationSettings.fontPackingMode
0006:3610 (04) 00000000( 0) fontCreationSettings.fontAtlasWidth
0006:3614 (04) 00000000( 0) fontCreationSettings.fontAtlasHeight
0006:3618 (04) 00000000( 0) fontCreationSettings.fontCharacterSet
0006:361C (04) 00000000( 0) fontCreationSettings.fontStyle
0006:3620 (04) 00000000(0.0) fontCreationSettings.fontStyleModifier
0006:3624 (04) 00000000( 0) fontCreationSettings.fontRenderMode
0006:3628 (04) 00000000( 0) fontCreationSettings.fontKerning
0006:362C (04) 0A000000(10) num of font weights.
0006:3630 (04) 00000000(0) [int32] RegularTypeFace.FildID --- font weights 1
0006:3634 (08) 00000000(0) [int64] RegularTypeFace.PathID
0006:3638 (--) 00000000
0006:363C (04) 00000000(0) [int32] ItalicTypeFace.FileID
0006:3640 (08) 00000000(0) [int64] ItalicTypeFace.PathID
0006:3644 (--) 00000000
0006:3648 (04) 00000000 font weights 2
0006:364C (04) 00000000
0006:3650 (04) 00000000
0006:3654 (04) 00000000
0006:3658 (04) 00000000
0006:365C (04) 00000000
0006:3660 (04) 00000000 font weights 3
0006:3664 (04) 00000000
0006:3668 (04) 00000000
0006:366C (04) 00000000
0006:3670 (04) 00000000
0006:3674 (04) 00000000
0006:3678 (04) 00000000 font weights 4
0006:367C (04) 00000000
0006:3680 (04) 00000000
0006:3684 (04) 00000000
0006:3688 (04) 00000000
0006:368C (04) 00000000
0006:3690 (04) 00000000 font weights 5
0006:3694 (04) 00000000
0006:3698 (04) 00000000
0006:369C (04) 00000000
0006:36A0 (04) 00000000
0006:36A4 (04) 00000000
0006:36A8 (04) 00000000 font weights 6
0006:36AC (04) 00000000
0006:36B0 (04) 00000000
0006:36B4 (04) 00000000
0006:36B8 (04) 00000000
0006:36BC (04) 00000000
0006:36C0 (04) 00000000 font weights 7
0006:36C4 (04) 00000000
0006:36C8 (04) 00000000
0006:36CC (04) 00000000
0006:36D0 (04) 00000000
0006:36D4 (04) 00000000
0006:36D8 (04) 00000000 font weights 8
0006:36DC (04) 00000000
0006:36E0 (04) 00000000
0006:36E4 (04) 00000000
0006:36E8 (04) 00000000
0006:36EC (04) 00000000
0006:36F0 (04) 00000000 font weights 9
0006:36F4 (04) 00000000
0006:36F8 (04) 00000000
0006:36FC (04) 00000000
0006:3700 (04) 00000000
0006:3704 (04) 00000000
0006:3708 (04) 00000000 font weights 10
0006:370C (04) 00000000
0006:3710 (04) 00000000
0006:3714 (04) 00000000
0006:3718 (04) 00000000
0006:371C (04) 00000000
0006:3720 (04) 00000000( 0.00) [float] Normal Style
0006:3724 (04) 00000000( 0.00) [float] Normal Spaceing Offset
0006:3728 (04) 0000403F( 0.75) [float] Bold Style
0006:372C (04) 0000E040( 7.00) [float] Bold Spacing
0006:3730 (04) 23000000( 35) Italic Style
0006:3734 (04) 0A000000( 10) TabSize
*EOF*
@synctam
Copy link
Author

synctam commented Jun 5, 2018

offset 0006:35FC は 「FontSourcePath Length」と判明しました。

@synctam
Copy link
Author

synctam commented Sep 26, 2018

v3.0.0 のアップデートで「FallbackFontAssetsDataFileID」と「FallbackFontAssetsDataPathID」が削除されました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment