summaryrefslogtreecommitdiff
path: root/Library/Artifacts/e6/e65bf8c65c685cec06bd8e52a16d52c0
blob: 07e7f03d4edc1928fba69f3786d58638c1021259 (plain)
ofshex dumpascii
0000 00 00 0f 81 00 00 51 80 00 00 00 15 00 00 10 00 00 00 00 00 32 30 31 39 2e 33 2e 36 66 31 00 fe ......Q.............2019.3.6f1..
0020 ff ff ff 01 02 00 00 00 0b 04 00 00 00 ff ff 66 9a 86 21 eb 14 35 98 39 dd 34 1d 51 0e c1 f3 42 ...............f..!..5.9.4.Q...B
0040 00 00 00 ed 00 00 00 02 00 00 00 00 00 00 00 37 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 ...............7................
0060 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 ................................
0080 00 00 00 00 00 00 00 01 00 01 00 0d 00 00 00 45 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 ...............E................
00a0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 ...............#................
00c0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 ...............,................
00e0 00 00 00 00 00 00 00 01 00 01 00 35 00 00 00 61 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 ...........5...a................
0100 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 ...............#................
0120 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 ...............,................
0140 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 ...............r................
0160 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 ...............#................
0180 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 ...............,................
01a0 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 ...........H....................
01c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 ...........1...1............@...
01e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 ................................
0200 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 ...........Q...j................
0220 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 4a 00 00 00 ff ff ff ff 0f 00 00 00 00 c0 00 00 00 ...............J................
0240 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 10 00 00 00 00 80 00 00 00 ...........1...1................
0260 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 11 00 00 00 00 00 00 00 00 ................................
0280 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 12 00 00 00 00 80 00 00 00 ...............j................
02a0 00 00 00 00 00 00 00 01 00 04 00 5c 00 00 00 9b 00 00 80 ff ff ff ff 13 00 00 00 00 80 00 00 00 ...........\....................
02c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 72 00 00 00 ff ff ff ff 14 00 00 00 00 80 00 00 00 ...........H...r................
02e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 15 00 00 00 01 40 00 00 00 ...........1...1............@...
0300 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 16 00 00 00 01 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 17 00 00 00 01 00 00 00 00 ...........Q...j................
0340 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 77 00 00 00 ff ff ff ff 18 00 00 00 00 80 00 00 00 ...........H...w................
0360 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 19 00 00 00 01 40 00 00 00 ...........1...1............@...
0380 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1a 00 00 00 01 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1b 00 00 00 01 00 00 00 00 ...........Q...j................
03c0 00 00 00 00 00 00 00 01 00 05 00 48 03 00 80 80 00 00 00 ff ff ff ff 1c 00 00 00 00 80 00 00 00 ...........H....................
03e0 00 00 00 00 00 00 00 01 00 06 01 31 00 00 80 31 00 00 80 ff ff ff ff 1d 00 00 00 01 40 00 00 00 ...........1...1............@...
0400 00 00 00 00 00 00 00 01 00 07 00 de 00 00 80 1b 03 00 80 04 00 00 00 1e 00 00 00 01 00 00 00 00 ................................
0420 00 00 00 00 00 00 00 01 00 07 00 51 00 00 80 6a 00 00 80 01 00 00 00 1f 00 00 00 01 00 00 00 00 ...........Q...j................
0440 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 20 00 00 00 00 00 00 00 00 ...........y....................
0460 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 21 00 00 00 01 00 80 00 00 ...............#.......!........
0480 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 22 00 00 00 01 00 80 00 00 ...............,......."........
04a0 00 00 00 00 00 00 00 01 00 01 00 11 03 00 80 85 00 00 00 ff ff ff ff 23 00 00 00 01 40 08 00 00 .......................#....@...
04c0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 24 00 00 00 01 00 08 00 00 ...........1...1.......$........
04e0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 25 00 00 00 01 00 08 00 00 .......................%........
0500 00 00 00 00 00 00 00 01 00 03 00 2e 03 00 80 6a 00 00 80 08 00 00 00 26 00 00 00 01 00 08 00 00 ...............j.......&........
0520 00 00 00 00 00 00 00 01 00 01 00 d5 03 00 80 93 00 00 00 ff ff ff ff 27 00 00 00 00 80 00 00 00 .......................'........
0540 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 28 00 00 00 00 c0 00 00 00 ...........1...1.......(........
0560 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 29 00 00 00 00 00 00 00 00 .......................)........
0580 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a 00 00 80 ff ff ff ff 2a 00 00 00 00 80 00 00 00 ...............j.......*........
05a0 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b 00 00 80 ff ff ff ff 2b 00 00 00 00 80 00 00 00 ...........H...........+........
05c0 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 00 00 80 ff ff ff ff 2c 00 00 00 01 40 00 00 00 ...........1...1.......,....@...
05e0 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b 03 00 80 04 00 00 00 2d 00 00 00 01 00 00 00 00 .......................-........
0600 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a 00 00 80 01 00 00 00 2e 00 00 00 01 00 00 00 00 ...........Q...j................
0620 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a 03 00 80 0c 00 00 00 2f 00 00 00 00 00 00 00 00 ...........y.........../........
0640 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 23 00 00 00 04 00 00 00 30 00 00 00 01 00 80 00 00 ...............#.......0........
0660 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 2c 00 00 00 08 00 00 00 31 00 00 00 01 00 80 00 00 ...............,.......1........
0680 00 00 00 00 00 00 00 01 00 01 00 20 03 00 80 a7 00 00 00 02 00 00 00 32 00 00 00 00 40 00 00 00 .......................2....@...
06a0 00 00 00 00 00 00 00 01 00 01 00 be 02 00 80 b6 00 00 00 0c 00 00 00 33 00 00 00 00 40 00 00 00 .......................3....@...
06c0 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 23 00 00 00 04 00 00 00 34 00 00 00 01 00 80 00 00 ...............#.......4........
06e0 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 2c 00 00 00 08 00 00 00 35 00 00 00 01 00 80 00 00 ...............,.......5........
0700 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 bb 00 00 00 ff ff ff ff 36 00 00 00 01 80 00 00 00 ...........H...........6........
0720 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 37 00 00 00 01 40 00 00 00 ...........1...1.......7....@...
0740 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 38 00 00 00 01 00 00 00 00 .......................8........
0760 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 39 00 00 00 01 00 00 00 00 ...........Q...j.......9........
0780 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 c6 00 00 00 ff ff ff ff 3a 00 00 00 01 80 00 00 00 ...........H...........:........
07a0 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3b 00 00 00 01 40 00 00 00 ...........1...1.......;....@...
07c0 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 3c 00 00 00 01 00 00 00 00 .......................<........
07e0 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 3d 00 00 00 01 00 00 00 00 ...........Q...j.......=........
0800 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 d8 00 00 00 ff ff ff ff 3e 00 00 00 01 80 00 00 00 ...........H...........>........
0820 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 00 00 80 ff ff ff ff 3f 00 00 00 01 40 00 00 00 ...........1...1.......?....@...
0840 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b 03 00 80 04 00 00 00 40 00 00 00 01 00 00 00 00 .......................@........
0860 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a 00 00 80 01 00 00 00 41 00 00 00 01 00 00 00 00 ...........Q...j.......A........
0880 00 00 00 00 00 00 00 4d 6f 6e 6f 49 6d 70 6f 72 74 65 72 00 50 50 74 72 3c 45 64 69 74 6f 72 45 .......MonoImporter.PPtr<EditorE
08a0 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 50 74 72 xtension>.m_FileID.m_PathID.PPtr
08c0 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 45 78 74 65 72 6e 61 6c 4f 62 6a 65 63 <PrefabInstance>.m_ExternalObjec
08e0 74 73 00 53 6f 75 72 63 65 41 73 73 65 74 49 64 65 6e 74 69 66 69 65 72 00 74 79 70 65 00 61 73 ts.SourceAssetIdentifier.type.as
0900 73 65 6d 62 6c 79 00 6e 61 6d 65 00 6d 5f 55 73 65 64 46 69 6c 65 49 44 73 00 6d 5f 44 65 66 61 sembly.name.m_UsedFileIDs.m_Defa
0920 75 6c 74 52 65 66 65 72 65 6e 63 65 73 00 65 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 69 63 6f ultReferences.executionOrder.ico
0940 6e 00 6d 5f 55 73 65 72 44 61 74 61 00 6d 5f 41 73 73 65 74 42 75 6e 64 6c 65 4e 61 6d 65 00 6d n.m_UserData.m_AssetBundleName.m
0960 5f 41 73 73 65 74 42 75 6e 64 6c 65 56 61 72 69 61 6e 74 00 00 00 00 00 73 00 00 00 00 ff ff a3 _AssetBundleVariant.....s.......
0980 47 f1 d7 dc 8f 5a 35 36 a0 3a 21 40 69 c1 4a 2a 00 00 00 81 00 00 00 05 00 00 00 15 01 00 80 37 G....Z56.:!@i.J*...............7
09a0 00 00 80 ff ff ff ff 00 00 00 00 00 80 00 00 00 00 00 00 00 00 00 00 01 00 01 00 a6 03 00 80 b2 ................................
09c0 01 00 80 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 00 00 00 00 45 ...............................E
09e0 04 00 80 0c 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a00 00 00 00 04 00 00 00 03 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a20 00 00 00 08 00 00 00 04 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 28 00 00 00 61 ...........................(...a
0a40 04 00 80 0c 00 00 00 05 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0a60 00 00 00 04 00 00 00 06 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0a80 00 00 00 08 00 00 00 07 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 86 02 00 80 72 ...............................r
0aa0 04 00 80 0c 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0ac0 00 00 00 04 00 00 00 09 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0ae0 00 00 00 08 00 00 00 0a 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ab ...........................H....
0b00 01 00 80 ff ff ff ff 0b 00 00 00 01 80 08 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0b20 00 00 80 ff ff ff ff 0c 00 00 00 01 40 08 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0b40 03 00 80 04 00 00 00 0d 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0b60 00 00 80 01 00 00 00 0e 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 ea ...........................H....
0b80 01 00 80 ff ff ff ff 0f 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0ba0 00 00 80 ff ff ff ff 10 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ............@...................
0bc0 03 00 80 04 00 00 00 11 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a ...........................Q...j
0be0 00 00 80 01 00 00 00 12 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 f1 00 00 80 3d ...............................=
0c00 00 00 00 ff ff ff ff 13 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ...........................1...1
0c20 00 00 80 ff ff ff ff 14 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b ................................
0c40 03 00 80 04 00 00 00 15 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 1f 02 00 80 6a ...............................j
0c60 00 00 80 ff ff ff ff 16 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 04 00 48 03 00 80 9b ...........................H....
0c80 00 00 80 ff ff ff ff 17 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 01 00 05 01 31 00 00 80 31 ...........................1...1
0ca0 00 00 80 ff ff ff ff 18 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 01 00 06 00 de 00 00 80 1b ............@...................
0cc0 03 00 80 04 00 00 00 19 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 06 00 51 00 00 80 6a ...........................Q...j
0ce0 00 00 80 01 00 00 00 1a 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 04 00 79 02 00 80 0a ...........................y....
0d00 03 00 80 0c 00 00 00 1b 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 01 00 05 00 de 00 00 80 16 ................................
0d20 00 00 00 04 00 00 00 1c 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 05 00 2e 03 00 80 1f ................................
0d40 00 00 00 08 00 00 00 1d 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 79 02 00 80 51 ...........................y...Q
0d60 00 00 00 0c 00 00 00 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 02 00 de 00 00 80 16 ................................
0d80 00 00 00 04 00 00 00 1f 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 02 00 2e 03 00 80 1f ................................
0da0 00 00 00 08 00 00 00 20 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 01 00 01 00 de 00 00 80 58 ...............................X
0dc0 00 00 00 04 00 00 00 21 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 69 .......!...................H...i
0de0 00 00 00 ff ff ff ff 22 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 ......."...................1...1
0e00 00 00 80 ff ff ff ff 23 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......#....@...................
0e20 03 00 80 04 00 00 00 24 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......$...................Q...j
0e40 00 00 80 01 00 00 00 25 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 01 00 48 03 00 80 75 .......%...................H...u
0e60 00 00 00 ff ff ff ff 26 00 00 00 10 80 00 00 00 00 00 00 00 00 00 00 01 00 02 01 31 00 00 80 31 .......&...................1...1
0e80 00 00 80 ff ff ff ff 27 00 00 00 11 40 00 00 00 00 00 00 00 00 00 00 01 00 03 00 de 00 00 80 1b .......'....@...................
0ea0 03 00 80 04 00 00 00 28 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 01 00 03 00 51 00 00 80 6a .......(...................Q...j
0ec0 00 00 80 01 00 00 00 29 00 00 00 11 00 00 00 00 00 00 00 00 00 00 00 50 50 74 72 3c 45 64 69 74 .......)...............PPtr<Edit
0ee0 6f 72 45 78 74 65 6e 73 69 6f 6e 3e 00 6d 5f 46 69 6c 65 49 44 00 6d 5f 50 61 74 68 49 44 00 50 orExtension>.m_FileID.m_PathID.P
0f00 50 74 72 3c 50 72 65 66 61 62 49 6e 73 74 61 6e 63 65 3e 00 6d 5f 44 65 66 61 75 6c 74 52 65 66 Ptr<PrefabInstance>.m_DefaultRef
0f20 65 72 65 6e 63 65 73 00 6d 5f 49 63 6f 6e 00 6d 5f 45 78 65 63 75 74 69 6f 6e 4f 72 64 65 72 00 erences.m_Icon.m_ExecutionOrder.
0f40 6d 5f 43 6c 61 73 73 4e 61 6d 65 00 6d 5f 4e 61 6d 65 73 70 61 63 65 00 00 00 00 00 02 00 00 00 m_ClassName.m_Namespace.........
0f60 03 00 00 00 00 00 00 00 00 00 00 00 5c 00 00 00 00 00 00 00 e0 79 af 00 00 00 00 00 60 00 00 00 ............\........y......`...
0f80 20 41 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .A..............................
0fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 e0 79 af 00 00 00 00 00 00 00 00 00 .....................y..........
1040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1080 00 00 00 00 00 00 00 00 16 00 00 00 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 55 74 69 6c 69 74 69 ............TMP_FontAssetUtiliti
10a0 65 73 00 00 9c 40 00 00 75 73 69 6e 67 20 53 79 73 74 65 6d 3b 0d 0a 75 73 69 6e 67 20 53 79 73 es...@..using.System;..using.Sys
10c0 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 3b 0d 0a 75 73 69 6e 67 20 53 79 73 74 65 6d 2e 43 tem.Collections;..using.System.C
10e0 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 ollections.Generic;..using.Unity
1100 45 6e 67 69 6e 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 78 74 43 Engine;..using.UnityEngine.TextC
1120 6f 72 65 3b 0d 0a 75 73 69 6e 67 20 55 6e 69 74 79 45 6e 67 69 6e 65 2e 54 65 78 74 43 6f 72 65 ore;..using.UnityEngine.TextCore
1140 2e 4c 6f 77 4c 65 76 65 6c 3b 0d 0a 0d 0a 0d 0a 6e 61 6d 65 73 70 61 63 65 20 54 4d 50 72 6f 0d .LowLevel;......namespace.TMPro.
1160 0a 7b 0d 0a 20 20 20 20 70 75 62 6c 69 63 20 63 6c 61 73 73 20 54 4d 50 5f 46 6f 6e 74 41 73 73 .{......public.class.TMP_FontAss
1180 65 74 55 74 69 6c 69 74 69 65 73 0d 0a 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 etUtilities......{..........priv
11a0 61 74 65 20 73 74 61 74 69 63 20 72 65 61 64 6f 6e 6c 79 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 ate.static.readonly.TMP_FontAsse
11c0 74 55 74 69 6c 69 74 69 65 73 20 73 5f 49 6e 73 74 61 6e 63 65 20 3d 20 6e 65 77 20 54 4d 50 5f tUtilities.s_Instance.=.new.TMP_
11e0 46 6f 6e 74 41 73 73 65 74 55 74 69 6c 69 74 69 65 73 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 FontAssetUtilities();...........
1200 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 44 65 66 61 .///.<summary>..........///.Defa
1220 75 6c 74 20 63 6f 6e 73 74 72 75 63 74 6f 72 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 ult.constructor..........///.</s
1240 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 73 74 61 74 69 63 20 54 4d 50 5f 46 6f 6e 74 ummary>..........static.TMP_Font
1260 41 73 73 65 74 55 74 69 6c 69 74 69 65 73 28 29 20 7b 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 AssetUtilities().{.}............
1280 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 47 65 74 ..///.<summary>..........///.Get
12a0 20 61 20 73 69 6e 67 6c 65 74 6f 6e 20 69 6e 73 74 61 6e 63 65 20 6f 66 20 74 68 65 20 46 6f 6e .a.singleton.instance.of.the.Fon
12c0 74 20 41 73 73 65 74 20 55 74 69 6c 69 74 69 65 73 20 63 6c 61 73 73 2e 0d 0a 20 20 20 20 20 20 t.Asset.Utilities.class.........
12e0 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 ..///.</summary>..........public
1300 20 73 74 61 74 69 63 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 55 74 69 6c 69 74 69 65 73 20 69 .static.TMP_FontAssetUtilities.i
1320 6e 73 74 61 6e 63 65 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 nstance..........{..............
1340 67 65 74 20 7b 20 72 65 74 75 72 6e 20 73 5f 49 6e 73 74 61 6e 63 65 3b 20 7d 0d 0a 20 20 20 20 get.{.return.s_Instance;.}......
1360 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e ....}..............///.<summary>
1380 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 4c 69 73 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 69 6e ..........///.List.containing.in
13a0 73 74 61 6e 63 65 20 49 44 20 6f 66 20 66 6f 6e 74 20 61 73 73 65 74 73 20 61 6c 72 65 61 64 79 stance.ID.of.font.assets.already
13c0 20 73 65 61 72 63 68 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 .searched...........///.</summar
13e0 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 4c 69 73 74 3c y>..........private.static.List<
1400 69 6e 74 3e 20 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e 74 41 73 73 65 74 73 3b 0d 0a 0d 0a 0d 0a int>.k_SearchedFontAssets;......
1420 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f ........///.<summary>........../
1440 2f 2f 20 52 65 74 75 72 6e 73 20 74 68 65 20 74 65 78 74 20 65 6c 65 6d 65 6e 74 20 28 63 68 61 //.Returns.the.text.element.(cha
1460 72 61 63 74 65 72 29 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 75 6e 69 63 6f 64 65 20 76 61 racter).for.the.given.unicode.va
1480 6c 75 65 20 74 61 6b 69 6e 67 20 69 6e 74 6f 20 63 6f 6e 73 69 64 65 72 61 74 69 6f 6e 20 74 68 lue.taking.into.consideration.th
14a0 65 20 72 65 71 75 65 73 74 65 64 20 66 6f 6e 74 20 73 74 79 6c 65 20 61 6e 64 20 77 65 69 67 68 e.requested.font.style.and.weigh
14c0 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 75 6e 63 74 69 6f 6e 20 73 65 61 72 63 68 65 t...........///.Function.searche
14e0 73 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 61 73 73 65 74 2c 20 69 74 73 20 6c 69 73 s.the.source.font.asset,.its.lis
1500 74 20 6f 66 20 66 6f 6e 74 20 61 73 73 65 74 73 20 61 73 73 69 67 6e 65 64 20 61 73 20 61 6c 74 t.of.font.assets.assigned.as.alt
1520 65 72 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 65 73 20 61 6e 64 20 70 6f 74 65 6e 74 69 61 6c ernative.typefaces.and.potential
1540 6c 79 20 69 74 73 20 66 61 6c 6c 62 61 63 6b 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 ly.its.fallbacks...........///.T
1560 68 65 20 66 6f 6e 74 20 61 73 73 65 74 20 6f 75 74 20 70 61 72 61 6d 65 74 65 72 20 63 6f 6e 74 he.font.asset.out.parameter.cont
1580 61 69 6e 73 20 61 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 66 6f 6e 74 20 61 73 73 ains.a.reference.to.the.font.ass
15a0 65 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 et.containing.the.character.....
15c0 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 79 70 65 66 61 63 65 20 74 79 70 65 20 69 6e 64 69 ......///.The.typeface.type.indi
15e0 63 61 74 65 73 20 77 68 65 74 68 65 72 20 74 68 65 20 72 65 74 75 72 6e 65 64 20 66 6f 6e 74 20 cates.whether.the.returned.font.
1600 61 73 73 65 74 20 69 73 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 61 73 73 65 74 2c 20 asset.is.the.source.font.asset,.
1620 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 65 20 6f 72 20 66 61 6c 6c 62 an.alternative.typeface.or.fallb
1640 61 63 6b 20 66 6f 6e 74 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 ack.font.asset...........///.</s
1660 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 ummary>..........///.<param.name
1680 3d 22 75 6e 69 63 6f 64 65 22 3e 54 68 65 20 75 6e 69 63 6f 64 65 20 76 61 6c 75 65 20 6f 66 20 ="unicode">The.unicode.value.of.
16a0 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 72 3c 2f 70 61 72 61 6d 3e 0d the.requested.character</param>.
16c0 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 73 6f 75 72 63 65 .........///.<param.name="source
16e0 46 6f 6e 74 41 73 73 65 74 22 3e 54 68 65 20 66 6f 6e 74 20 61 73 73 65 74 20 74 6f 20 62 65 20 FontAsset">The.font.asset.to.be.
1700 73 65 61 72 63 68 65 64 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 searched</param>..........///.<p
1720 61 72 61 6d 20 6e 61 6d 65 3d 22 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 22 3e 49 6e 63 aram.name="includeFallbacks">Inc
1740 6c 75 64 65 20 74 68 65 20 66 61 6c 6c 62 61 63 6b 20 66 6f 6e 74 20 61 73 73 65 74 73 20 69 6e lude.the.fallback.font.assets.in
1760 20 74 68 65 20 73 65 61 72 63 68 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f .the.search</param>..........///
1780 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 66 6f 6e 74 53 74 79 6c 65 22 3e 54 68 65 20 66 6f 6e .<param.name="fontStyle">The.fon
17a0 74 20 73 74 79 6c 65 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 t.style</param>..........///.<pa
17c0 72 61 6d 20 6e 61 6d 65 3d 22 66 6f 6e 74 57 65 69 67 68 74 22 3e 54 68 65 20 66 6f 6e 74 20 77 ram.name="fontWeight">The.font.w
17e0 65 69 67 68 74 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 eight</param>..........///.<para
1800 6d 20 6e 61 6d 65 3d 22 74 79 70 65 22 3e 49 6e 64 69 63 61 74 65 73 20 69 66 20 74 68 65 20 4f m.name="type">Indicates.if.the.O
1820 55 54 20 66 6f 6e 74 20 61 73 73 65 74 20 69 73 20 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 65 20 UT.font.asset.is.an.alternative.
1840 74 79 70 65 66 61 63 65 20 6f 72 20 66 61 6c 6c 62 61 63 6b 20 66 6f 6e 74 20 61 73 73 65 74 3c typeface.or.fallback.font.asset<
1860 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 /param>..........///.<param.name
1880 3d 22 66 6f 6e 74 41 73 73 65 74 22 3e 54 68 65 20 66 6f 6e 74 20 61 73 73 65 74 20 74 68 61 74 ="fontAsset">The.font.asset.that
18a0 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 .contains.the.requested.characte
18c0 72 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 65 74 75 72 6e 73 3e r</param>..........///.<returns>
18e0 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 </returns>..........public.stati
1900 63 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 47 65 74 43 68 61 72 61 63 74 65 72 46 72 6f 6d c.TMP_Character.GetCharacterFrom
1920 46 6f 6e 74 41 73 73 65 74 28 75 69 6e 74 20 75 6e 69 63 6f 64 65 2c 20 54 4d 50 5f 46 6f 6e 74 FontAsset(uint.unicode,.TMP_Font
1940 41 73 73 65 74 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2c 20 62 6f 6f 6c 20 69 6e 63 6c Asset.sourceFontAsset,.bool.incl
1960 75 64 65 46 61 6c 6c 62 61 63 6b 73 2c 20 46 6f 6e 74 53 74 79 6c 65 73 20 66 6f 6e 74 53 74 79 udeFallbacks,.FontStyles.fontSty
1980 6c 65 2c 20 46 6f 6e 74 57 65 69 67 68 74 20 66 6f 6e 74 57 65 69 67 68 74 2c 20 6f 75 74 20 62 le,.FontWeight.fontWeight,.out.b
19a0 6f 6f 6c 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 2c 20 6f 75 74 20 54 ool.isAlternativeTypeface,.out.T
19c0 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 29 0d 0a 20 20 20 20 20 20 20 MP_FontAsset.fontAsset).........
19e0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 63 6c 75 64 65 46 61 6c 6c 62 .{..............if.(includeFallb
1a00 61 63 6b 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 acks)..............{............
1a20 20 20 20 20 20 20 69 66 20 28 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e 74 41 73 73 65 74 73 20 3d ......if.(k_SearchedFontAssets.=
1a40 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 5f 53 =.null)......................k_S
1a60 65 61 72 63 68 65 64 46 6f 6e 74 41 73 73 65 74 73 20 3d 20 6e 65 77 20 4c 69 73 74 3c 69 6e 74 earchedFontAssets.=.new.List<int
1a80 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 0d 0a 20 20 20 20 >();..................else......
1aa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e 74 41 73 ................k_SearchedFontAs
1ac0 73 65 74 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a sets.Clear();..............}....
1ae0 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 47 65 74 43 68 61 72 61 63 74 65 72 46 ............return.GetCharacterF
1b00 72 6f 6d 46 6f 6e 74 41 73 73 65 74 5f 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f 64 65 2c 20 73 romFontAsset_Internal(unicode,.s
1b20 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2c 20 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 ourceFontAsset,.includeFallbacks
1b40 2c 20 66 6f 6e 74 53 74 79 6c 65 2c 20 66 6f 6e 74 57 65 69 67 68 74 2c 20 6f 75 74 20 69 73 41 ,.fontStyle,.fontWeight,.out.isA
1b60 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 2c 20 6f 75 74 20 66 6f 6e 74 41 73 73 65 lternativeTypeface,.out.fontAsse
1b80 74 29 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 t);..........}..............///.
1ba0 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 49 6e 74 65 72 6e 61 6c 20 <summary>..........///.Internal.
1bc0 66 75 6e 63 74 69 6f 6e 20 72 65 74 75 72 6e 69 6e 67 20 74 68 65 20 74 65 78 74 20 65 6c 65 6d function.returning.the.text.elem
1be0 65 6e 74 20 63 68 61 72 61 63 74 65 72 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 75 6e 69 63 ent.character.for.the.given.unic
1c00 6f 64 65 20 76 61 6c 75 65 20 74 61 6b 69 6e 67 20 69 6e 74 6f 20 63 6f 6e 73 69 64 65 72 61 74 ode.value.taking.into.considerat
1c20 69 6f 6e 20 74 68 65 20 66 6f 6e 74 20 73 74 79 6c 65 20 61 6e 64 20 77 65 69 67 68 74 2e 0d 0a ion.the.font.style.and.weight...
1c40 20 20 20 20 20 20 20 20 2f 2f 2f 20 46 75 6e 63 74 69 6f 6e 20 73 65 61 72 63 68 65 73 20 74 68 ........///.Function.searches.th
1c60 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 61 73 73 65 74 2c 20 6c 69 73 74 20 6f 66 20 66 6f 6e e.source.font.asset,.list.of.fon
1c80 74 20 61 73 73 65 74 73 20 61 73 73 69 67 6e 65 64 20 61 73 20 61 6c 74 65 72 6e 61 74 69 76 65 t.assets.assigned.as.alternative
1ca0 20 74 79 70 65 66 61 63 65 73 20 61 6e 64 20 6c 69 73 74 20 6f 66 20 66 61 6c 6c 62 61 63 6b 20 .typefaces.and.list.of.fallback.
1cc0 66 6f 6e 74 20 61 73 73 65 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d font.assets...........///.</summ
1ce0 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 54 4d 50 ary>..........private.static.TMP
1d00 5f 43 68 61 72 61 63 74 65 72 20 47 65 74 43 68 61 72 61 63 74 65 72 46 72 6f 6d 46 6f 6e 74 41 _Character.GetCharacterFromFontA
1d20 73 73 65 74 5f 49 6e 74 65 72 6e 61 6c 28 75 69 6e 74 20 75 6e 69 63 6f 64 65 2c 20 54 4d 50 5f sset_Internal(uint.unicode,.TMP_
1d40 46 6f 6e 74 41 73 73 65 74 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2c 20 62 6f 6f 6c 20 FontAsset.sourceFontAsset,.bool.
1d60 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 2c 20 46 6f 6e 74 53 74 79 6c 65 73 20 66 6f 6e includeFallbacks,.FontStyles.fon
1d80 74 53 74 79 6c 65 2c 20 46 6f 6e 74 57 65 69 67 68 74 20 66 6f 6e 74 57 65 69 67 68 74 2c 20 6f tStyle,.FontWeight.fontWeight,.o
1da0 75 74 20 62 6f 6f 6c 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 2c 20 6f ut.bool.isAlternativeTypeface,.o
1dc0 75 74 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 29 0d 0a 20 20 20 ut.TMP_FontAsset.fontAsset).....
1de0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 .....{..............fontAsset.=.
1e00 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 null;..............isAlternative
1e20 54 79 70 65 66 61 63 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 54 Typeface.=.false;..............T
1e40 4d 50 5f 43 68 61 72 61 63 74 65 72 20 63 68 61 72 61 63 74 65 72 44 61 74 61 20 3d 20 6e 75 6c MP_Character.characterData.=.nul
1e60 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 72 65 67 69 6f 6e 20 46 4f 4e 54 20 57 l;................#region.FONT.W
1e80 45 49 47 48 54 20 41 4e 44 20 46 4f 4e 54 20 53 54 59 4c 45 20 48 41 4e 44 4c 49 4e 47 0d 0a 20 EIGHT.AND.FONT.STYLE.HANDLING...
1ea0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 44 65 74 65 72 6d 69 6e 65 20 69 66 20 61 20 66 6f 6e ...........//.Determine.if.a.fon
1ec0 74 20 77 65 69 67 68 74 20 6f 72 20 73 74 79 6c 65 20 69 73 20 75 73 65 64 2e 20 49 66 20 73 6f t.weight.or.style.is.used..If.so
1ee0 20 63 68 65 63 6b 20 69 66 20 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 .check.if.an.alternative.typefac
1f00 65 20 69 73 20 61 73 73 69 67 6e 65 64 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 77 65 69 67 e.is.assigned.for.the.given.weig
1f20 68 74 20 61 6e 64 20 2f 20 6f 72 20 73 74 79 6c 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ht.and./.or.style...............
1f40 62 6f 6f 6c 20 69 73 49 74 61 6c 69 63 20 3d 20 28 66 6f 6e 74 53 74 79 6c 65 20 26 20 46 6f 6e bool.isItalic.=.(fontStyle.&.Fon
1f60 74 53 74 79 6c 65 73 2e 49 74 61 6c 69 63 29 20 3d 3d 20 46 6f 6e 74 53 74 79 6c 65 73 2e 49 74 tStyles.Italic).==.FontStyles.It
1f80 61 6c 69 63 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 73 49 74 61 6c 69 alic;................if.(isItali
1fa0 63 20 7c 7c 20 66 6f 6e 74 57 65 69 67 68 74 20 21 3d 20 46 6f 6e 74 57 65 69 67 68 74 2e 52 65 c.||.fontWeight.!=.FontWeight.Re
1fc0 67 75 6c 61 72 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 gular)..............{...........
1fe0 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 65 20 66 .......//.Get.reference.to.the.f
2000 6f 6e 74 20 77 65 69 67 68 74 20 70 61 69 72 73 20 6f 66 20 74 68 65 20 67 69 76 65 6e 20 66 6f ont.weight.pairs.of.the.given.fo
2020 6e 74 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 46 nt.asset...................TMP_F
2040 6f 6e 74 57 65 69 67 68 74 50 61 69 72 5b 5d 20 66 6f 6e 74 57 65 69 67 68 74 73 20 3d 20 73 6f ontWeightPair[].fontWeights.=.so
2060 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 66 6f 6e 74 57 65 69 67 68 74 54 61 62 6c 65 3b 0d 0a urceFontAsset.fontWeightTable;..
2080 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 66 6f 6e 74 57 65 69 67 68 74 ..................int.fontWeight
20a0 49 6e 64 65 78 20 3d 20 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 77 69 74 Index.=.4;..................swit
20c0 63 68 20 28 66 6f 6e 74 57 65 69 67 68 74 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ch.(fontWeight).................
20e0 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e .{......................case.Fon
2100 74 57 65 69 67 68 74 2e 54 68 69 6e 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tWeight.Thin:...................
2120 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 31 3b 0d 0a 20 20 20 .......fontWeightIndex.=.1;.....
2140 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 .....................break;.....
2160 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 .................case.FontWeight
2180 2e 45 78 74 72 61 4c 69 67 68 74 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .ExtraLight:....................
21a0 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 32 3b 0d 0a 20 20 20 20 ......fontWeightIndex.=.2;......
21c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 ....................break;......
21e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 2e ................case.FontWeight.
2200 4c 69 67 68 74 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Light:..........................
2220 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 33 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 fontWeightIndex.=.3;............
2240 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 ..............break;............
2260 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 2e 52 65 67 75 6c 61 ..........case.FontWeight.Regula
2280 72 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 r:..........................font
22a0 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 34 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 WeightIndex.=.4;................
22c0 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........break;................
22e0 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 2e 4d 65 64 69 75 6d 3a 0d 0a 20 ......case.FontWeight.Medium:...
2300 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 .......................fontWeigh
2320 74 49 6e 64 65 78 20 3d 20 35 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tIndex.=.5;.....................
2340 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .....break;.....................
2360 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 2e 53 65 6d 69 42 6f 6c 64 3a 0d 0a 20 20 20 20 .case.FontWeight.SemiBold:......
2380 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 49 6e ....................fontWeightIn
23a0 64 65 78 20 3d 20 36 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 dex.=.6;........................
23c0 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 ..break;......................ca
23e0 73 65 20 46 6f 6e 74 57 65 69 67 68 74 2e 42 6f 6c 64 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 se.FontWeight.Bold:.............
2400 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 37 .............fontWeightIndex.=.7
2420 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b ;..........................break
2440 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 ;......................case.Font
2460 57 65 69 67 68 74 2e 48 65 61 76 79 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 Weight.Heavy:...................
2480 20 20 20 20 20 20 20 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 38 3b 0d 0a 20 20 20 .......fontWeightIndex.=.8;.....
24a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 .....................break;.....
24c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 61 73 65 20 46 6f 6e 74 57 65 69 67 68 74 .................case.FontWeight
24e0 2e 42 6c 61 63 6b 3a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .Black:.........................
2500 20 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 20 3d 20 39 3b 0d 0a 20 20 20 20 20 20 20 20 20 .fontWeightIndex.=.9;...........
2520 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 72 65 61 6b 3b 0d 0a 20 20 20 20 20 20 20 20 20 ...............break;...........
2540 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 .......}....................font
2560 41 73 73 65 74 20 3d 20 69 73 49 74 61 6c 69 63 20 3f 20 66 6f 6e 74 57 65 69 67 68 74 73 5b 66 Asset.=.isItalic.?.fontWeights[f
2580 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 5d 2e 69 74 61 6c 69 63 54 79 70 65 66 61 63 65 20 3a ontWeightIndex].italicTypeface.:
25a0 20 66 6f 6e 74 57 65 69 67 68 74 73 5b 66 6f 6e 74 57 65 69 67 68 74 49 6e 64 65 78 5d 2e 72 65 .fontWeights[fontWeightIndex].re
25c0 67 75 6c 61 72 54 79 70 65 66 61 63 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 gularTypeface;..................
25e0 20 20 69 66 20 28 66 6f 6e 74 41 73 73 65 74 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 ..if.(fontAsset.!=.null)........
2600 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ..........{.....................
2620 20 69 66 20 28 66 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 70 54 61 .if.(fontAsset.characterLookupTa
2640 62 6c 65 2e 54 72 79 47 65 74 56 61 6c 75 65 28 75 6e 69 63 6f 64 65 2c 20 6f 75 74 20 63 68 61 ble.TryGetValue(unicode,.out.cha
2660 72 61 63 74 65 72 44 61 74 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 racterData))....................
2680 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 ..{..........................isA
26a0 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 lternativeTypeface.=.true;......
26c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 68 61 ......................return.cha
26e0 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 racterData;.....................
2700 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 .}......................else.if.
2720 28 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 20 3d (fontAsset.atlasPopulationMode.=
2740 3d 20 41 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 2e 44 79 6e 61 6d 69 63 29 0d 0a =.AtlasPopulationMode.Dynamic)..
2760 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 ....................{...........
2780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 66 6f 6e 74 41 73 73 65 74 2e 54 72 79 ...............if.(fontAsset.Try
27a0 41 64 64 43 68 61 72 61 63 74 65 72 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f 64 65 2c 20 6f 75 AddCharacterInternal(unicode,.ou
27c0 74 20 63 68 61 72 61 63 74 65 72 44 61 74 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 t.characterData))...............
27e0 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........{....................
2800 20 20 20 20 20 20 20 20 20 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 20 ..........isAlternativeTypeface.
2820 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 =.true;.........................
2840 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 68 61 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 .......return.characterData;....
2860 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 ......................}.........
2880 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b 20 69 66 20 74 ...................//.Check.if.t
28a0 68 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 he.source.font.file.contains.the
28c0 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 .requested.character............
28e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 54 72 79 47 65 74 43 68 61 72 61 ...............//if.(TryGetChara
2900 63 74 65 72 46 72 6f 6d 46 6f 6e 74 46 69 6c 65 28 75 6e 69 63 6f 64 65 2c 20 66 6f 6e 74 41 73 cterFromFontFile(unicode,.fontAs
2920 73 65 74 2c 20 6f 75 74 20 63 68 61 72 61 63 74 65 72 44 61 74 61 29 29 0d 0a 20 20 20 20 20 20 set,.out.characterData))........
2940 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 7b 0d 0a 20 20 20 20 20 20 20 20 20 ..................//{...........
2960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 69 73 41 6c 74 65 72 6e 61 74 69 ...............//....isAlternati
2980 76 65 54 79 70 65 66 61 63 65 20 3d 20 74 72 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 veTypeface.=.true;..............
29a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 72 65 74 75 72 6e 20 63 68 61 72 61 ..............//....return.chara
29c0 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 cterData;.......................
29e0 20 20 20 2f 2f 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...//}..........................
2a00 20 20 2f 2f 20 49 66 20 77 65 20 66 69 6e 64 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 ..//.If.we.find.the.requested.ch
2a20 61 72 61 63 74 65 72 2c 20 77 65 20 61 64 64 20 69 74 20 74 6f 20 74 68 65 20 66 6f 6e 74 20 61 aracter,.we.add.it.to.the.font.a
2a40 73 73 65 74 20 63 68 61 72 61 63 74 65 72 20 74 61 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 sset.character.table............
2a60 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 61 6e 64 20 72 65 74 75 72 6e 20 69 74 73 20 ..............//.and.return.its.
2a80 63 68 61 72 61 63 74 65 72 20 64 61 74 61 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 character.data..................
2aa0 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 61 6c 73 6f 20 61 64 64 20 74 68 69 73 20 63 68 61 .........//.We.also.add.this.cha
2ac0 72 61 63 74 65 72 20 74 6f 20 74 68 65 20 6c 69 73 74 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 racter.to.the.list.of.characters
2ae0 20 77 65 20 77 69 6c 6c 20 6e 65 65 64 20 74 6f 20 61 64 64 20 74 6f 20 74 68 65 20 66 6f 6e 74 .we.will.need.to.add.to.the.font
2b00 20 61 74 6c 61 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .atlas..........................
2b20 20 2f 2f 20 57 65 20 61 73 73 75 6d 65 20 74 68 65 20 66 6f 6e 74 20 61 74 6c 61 73 20 68 61 73 .//.We.assume.the.font.atlas.has
2b40 20 72 6f 6f 6d 20 6f 74 68 65 72 77 69 73 65 20 74 68 69 73 20 66 6f 6e 74 20 61 73 73 65 74 20 .room.otherwise.this.font.asset.
2b60 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 6d 61 72 6b 65 64 20 61 73 20 64 79 6e 61 6d 69 63 2e should.not.be.marked.as.dynamic.
2b80 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6c 74 ..........................//.Alt
2ba0 65 72 6e 61 74 69 76 65 6c 79 2c 20 77 65 20 63 6f 75 6c 64 20 61 6c 73 6f 20 61 64 64 20 6d 75 ernatively,.we.could.also.add.mu
2bc0 6c 74 69 70 6c 65 20 70 61 67 65 73 20 6f 66 20 66 6f 6e 74 20 61 74 6c 61 73 20 74 65 78 74 75 ltiple.pages.of.font.atlas.textu
2be0 72 65 73 20 28 66 65 61 74 75 72 65 20 63 6f 6e 73 69 64 65 72 61 74 69 6f 6e 29 2e 0d 0a 20 20 res.(feature.consideration).....
2c00 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..................}.............
2c20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 74 20 74 68 69 73 20 70 6f 69 6e 74 2c 20 77 65 20 ...........//.At.this.point,.we.
2c40 77 65 72 65 20 6e 6f 74 20 61 62 6c 65 20 74 6f 20 66 69 6e 64 20 74 68 65 20 72 65 71 75 65 73 were.not.able.to.find.the.reques
2c60 74 65 64 20 63 68 61 72 61 63 74 65 72 20 69 6e 20 74 68 65 20 61 6c 74 65 72 6e 61 74 69 76 65 ted.character.in.the.alternative
2c80 20 74 79 70 65 66 61 63 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f .typeface....................../
2ca0 2f 20 73 6f 20 77 65 20 63 68 65 63 6b 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 61 73 /.so.we.check.the.source.font.as
2cc0 73 65 74 20 61 6e 64 20 69 74 73 20 70 6f 74 65 6e 74 69 61 6c 20 66 61 6c 6c 62 61 63 6b 73 2e set.and.its.potential.fallbacks.
2ce0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ..................}.............
2d00 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 23 65 6e 64 72 65 67 69 6f 6e 0d 0a 0d 0a ...}..............#endregion....
2d20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 72 63 68 20 74 68 65 20 73 6f 75 72 63 65 ............//.Search.the.source
2d40 20 66 6f 6e 74 20 61 73 73 65 74 20 66 6f 72 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 .font.asset.for.the.requested.ch
2d60 61 72 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 aracter...............if.(source
2d80 46 6f 6e 74 41 73 73 65 74 2e 63 68 61 72 61 63 74 65 72 4c 6f 6f 6b 75 70 54 61 62 6c 65 2e 54 FontAsset.characterLookupTable.T
2da0 72 79 47 65 74 56 61 6c 75 65 28 75 6e 69 63 6f 64 65 2c 20 6f 75 74 20 63 68 61 72 61 63 74 65 ryGetValue(unicode,.out.characte
2dc0 72 44 61 74 61 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 rData))..............{..........
2de0 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 77 65 72 65 20 61 62 6c 65 20 74 6f 20 6c 6f 63 61 74 ........//.We.were.able.to.locat
2e00 65 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 72 20 69 6e 20 74 68 65 e.the.requested.character.in.the
2e20 20 67 69 76 65 6e 20 66 6f 6e 74 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .given.font.asset...............
2e40 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 3b ....fontAsset.=.sourceFontAsset;
2e60 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 68 61 72 61 ....................return.chara
2e80 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 cterData;..............}........
2ea0 20 20 20 20 20 20 65 6c 73 65 20 69 66 20 28 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 61 ......else.if.(sourceFontAsset.a
2ec0 74 6c 61 73 50 6f 70 75 6c 61 74 69 6f 6e 4d 6f 64 65 20 3d 3d 20 41 74 6c 61 73 50 6f 70 75 6c tlasPopulationMode.==.AtlasPopul
2ee0 61 74 69 6f 6e 4d 6f 64 65 2e 44 79 6e 61 6d 69 63 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 ationMode.Dynamic)..............
2f00 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 73 6f 75 72 63 65 46 6f 6e {..................if.(sourceFon
2f20 74 41 73 73 65 74 2e 54 72 79 41 64 64 43 68 61 72 61 63 74 65 72 49 6e 74 65 72 6e 61 6c 28 75 tAsset.TryAddCharacterInternal(u
2f40 6e 69 63 6f 64 65 2c 20 6f 75 74 20 63 68 61 72 61 63 74 65 72 44 61 74 61 29 29 0d 0a 20 20 20 nicode,.out.characterData)).....
2f60 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .............{..................
2f80 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 3b ....fontAsset.=.sourceFontAsset;
2fa0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 63 ........................return.c
2fc0 68 61 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d haracterData;..................}
2fe0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 2f 2f 20 43 68 65 63 6b 20 69 ....................////.Check.i
3000 66 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f 6e 74 20 66 69 6c 65 20 63 6f 6e 74 61 69 6e 73 20 f.the.source.font.file.contains.
3020 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 the.requested.character.........
3040 20 20 20 20 20 20 20 20 20 20 2f 2f 69 66 20 28 54 72 79 47 65 74 43 68 61 72 61 63 74 65 72 46 ..........//if.(TryGetCharacterF
3060 72 6f 6d 46 6f 6e 74 46 69 6c 65 28 75 6e 69 63 6f 64 65 2c 20 73 6f 75 72 63 65 46 6f 6e 74 41 romFontFile(unicode,.sourceFontA
3080 73 73 65 74 2c 20 6f 75 74 20 63 68 61 72 61 63 74 65 72 44 61 74 61 29 29 0d 0a 20 20 20 20 20 sset,.out.characterData)).......
30a0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........//{..................
30c0 2f 2f 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 //....fontAsset.=.sourceFontAsse
30e0 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 20 20 20 2f 2f 66 6f t;....................//....//fo
3100 6e 74 41 73 73 65 74 2e 41 64 64 43 68 61 72 61 63 74 65 72 54 6f 52 61 73 74 65 72 4c 69 73 74 ntAsset.AddCharacterToRasterList
3120 28 75 6e 69 63 6f 64 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f (unicode);....................//
3140 20 20 20 20 72 65 74 75 72 6e 20 63 68 61 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 ....return.characterData;.......
3160 20 20 20 20 20 20 20 20 20 20 20 2f 2f 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...........//}..................
3180 20 20 2f 2f 20 49 66 20 77 65 20 66 69 6e 64 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 ..//.If.we.find.the.requested.ch
31a0 61 72 61 63 74 65 72 2c 20 77 65 20 61 64 64 20 69 74 20 74 6f 20 74 68 65 20 66 6f 6e 74 20 61 aracter,.we.add.it.to.the.font.a
31c0 73 73 65 74 20 63 68 61 72 61 63 74 65 72 20 74 61 62 6c 65 0d 0a 20 20 20 20 20 20 20 20 20 20 sset.character.table............
31e0 20 20 20 20 20 20 2f 2f 20 61 6e 64 20 72 65 74 75 72 6e 20 69 74 73 20 63 68 61 72 61 63 74 65 ......//.and.return.its.characte
3200 72 20 64 61 74 61 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 61 r.data...................//.We.a
3220 6c 73 6f 20 61 64 64 20 74 68 69 73 20 63 68 61 72 61 63 74 65 72 20 74 6f 20 74 68 65 20 6c 69 lso.add.this.character.to.the.li
3240 73 74 20 6f 66 20 63 68 61 72 61 63 74 65 72 73 20 77 65 20 77 69 6c 6c 20 6e 65 65 64 20 74 6f st.of.characters.we.will.need.to
3260 20 61 64 64 20 74 6f 20 74 68 65 20 66 6f 6e 74 20 61 74 6c 61 73 2e 0d 0a 20 20 20 20 20 20 20 .add.to.the.font.atlas..........
3280 20 20 20 20 20 20 20 20 20 2f 2f 20 57 65 20 61 73 73 75 6d 65 20 74 68 65 20 66 6f 6e 74 20 61 .........//.We.assume.the.font.a
32a0 74 6c 61 73 20 68 61 73 20 72 6f 6f 6d 20 6f 74 68 65 72 77 69 73 65 20 74 68 69 73 20 66 6f 6e tlas.has.room.otherwise.this.fon
32c0 74 20 61 73 73 65 74 20 73 68 6f 75 6c 64 20 6e 6f 74 20 62 65 20 6d 61 72 6b 65 64 20 61 73 20 t.asset.should.not.be.marked.as.
32e0 64 79 6e 61 6d 69 63 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 6c 74 dynamic...................//.Alt
3300 65 72 6e 61 74 69 76 65 6c 79 2c 20 77 65 20 63 6f 75 6c 64 20 61 6c 73 6f 20 61 64 64 20 6d 75 ernatively,.we.could.also.add.mu
3320 6c 74 69 70 6c 65 20 70 61 67 65 73 20 6f 66 20 66 6f 6e 74 20 61 74 6c 61 73 20 74 65 78 74 75 ltiple.pages.of.font.atlas.textu
3340 72 65 73 20 28 66 65 61 74 75 72 65 20 63 6f 6e 73 69 64 65 72 61 74 69 6f 6e 29 0d 0a 20 20 20 res.(feature.consideration).....
3360 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 53 65 61 .........}................//.Sea
3380 72 63 68 20 66 61 6c 6c 62 61 63 6b 20 66 6f 6e 74 20 61 73 73 65 74 73 20 69 66 20 77 65 20 73 rch.fallback.font.assets.if.we.s
33a0 74 69 6c 6c 20 64 6f 6e 27 74 20 68 61 76 65 20 61 20 76 61 6c 69 64 20 63 68 61 72 61 63 74 65 till.don't.have.a.valid.characte
33c0 72 20 61 6e 64 20 69 6e 63 6c 75 64 65 20 66 61 6c 6c 62 61 63 6b 20 69 73 20 73 65 74 20 74 6f r.and.include.fallback.is.set.to
33e0 20 74 72 75 65 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 61 72 61 63 74 65 .true...............if.(characte
3400 72 44 61 74 61 20 3d 3d 20 6e 75 6c 6c 20 26 26 20 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b rData.==.null.&&.includeFallback
3420 73 20 26 26 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 66 61 6c 6c 62 61 63 6b 46 6f 6e s.&&.sourceFontAsset.fallbackFon
3440 74 41 73 73 65 74 54 61 62 6c 65 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 tAssetTable.!=.null)............
3460 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 47 65 74 20 72 65 66 65 ..{..................//.Get.refe
3480 72 65 6e 63 65 20 74 6f 20 74 68 65 20 6c 69 73 74 20 6f 66 20 66 61 6c 6c 62 61 63 6b 20 66 6f rence.to.the.list.of.fallback.fo
34a0 6e 74 20 61 73 73 65 74 73 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4c 69 73 74 nt.assets...................List
34c0 3c 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 3e 20 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 <TMP_FontAsset>.fallbackFontAsse
34e0 74 73 20 3d 20 73 6f 75 72 63 65 46 6f 6e 74 41 73 73 65 74 2e 66 61 6c 6c 62 61 63 6b 46 6f 6e ts.=.sourceFontAsset.fallbackFon
3500 74 41 73 73 65 74 54 61 62 6c 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 6e tAssetTable;..................in
3520 74 20 66 61 6c 6c 62 61 63 6b 43 6f 75 6e 74 20 3d 20 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 t.fallbackCount.=.fallbackFontAs
3540 73 65 74 73 2e 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 sets.Count;....................i
3560 66 20 28 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 73 20 21 3d 20 6e 75 6c 6c 20 26 26 f.(fallbackFontAssets.!=.null.&&
3580 20 66 61 6c 6c 62 61 63 6b 43 6f 75 6e 74 20 3e 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 .fallbackCount.>.0).............
35a0 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 .....{......................for.
35c0 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 66 61 6c 6c 62 61 63 6b 43 6f 75 6e 74 20 26 26 (int.i.=.0;.i.<.fallbackCount.&&
35e0 20 63 68 61 72 61 63 74 65 72 44 61 74 61 20 3d 3d 20 6e 75 6c 6c 3b 20 69 2b 2b 29 0d 0a 20 20 .characterData.==.null;.i++)....
3600 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ..................{.............
3620 20 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 74 65 6d 70 20 .............TMP_FontAsset.temp.
3640 3d 20 66 61 6c 6c 62 61 63 6b 46 6f 6e 74 41 73 73 65 74 73 5b 69 5d 3b 0d 0a 0d 0a 20 20 20 20 =.fallbackFontAssets[i];........
3660 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 74 65 6d 70 20 3d 3d 20 ....................if.(temp.==.
3680 6e 75 6c 6c 29 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 null).continue;.................
36a0 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 69 64 20 3d 20 74 65 6d 70 2e 47 65 74 49 6e 73 74 ...........int.id.=.temp.GetInst
36c0 61 6e 63 65 49 44 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 anceID();.......................
36e0 20 20 20 20 20 2f 2f 20 53 6b 69 70 20 6f 76 65 72 20 74 68 65 20 66 61 6c 6c 62 61 63 6b 20 66 .....//.Skip.over.the.fallback.f
3700 6f 6e 74 20 61 73 73 65 74 20 69 6e 20 74 68 65 20 65 76 65 6e 74 20 69 74 20 69 73 20 6e 75 6c ont.asset.in.the.event.it.is.nul
3720 6c 20 6f 72 20 69 66 20 61 6c 72 65 61 64 79 20 73 65 61 72 63 68 65 64 2e 0d 0a 20 20 20 20 20 l.or.if.already.searched........
3740 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6b 5f 53 65 61 72 63 68 65 ...................if.(k_Searche
3760 64 46 6f 6e 74 41 73 73 65 74 73 2e 43 6f 6e 74 61 69 6e 73 28 69 64 29 29 0d 0a 20 20 20 20 20 dFontAssets.Contains(id)).......
3780 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 6f 6e 74 69 6e 75 65 3b .......................continue;
37a0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 ............................//.A
37c0 64 64 20 74 6f 20 6c 69 73 74 20 6f 66 20 66 6f 6e 74 20 61 73 73 65 74 73 20 61 6c 72 65 61 64 dd.to.list.of.font.assets.alread
37e0 79 20 73 65 61 72 63 68 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 y.searched......................
3800 20 20 20 20 20 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e 74 41 73 73 65 74 73 2e 41 64 64 28 69 64 .....k_SearchedFontAssets.Add(id
3820 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 );............................ch
3840 61 72 61 63 74 65 72 44 61 74 61 20 3d 20 47 65 74 43 68 61 72 61 63 74 65 72 46 72 6f 6d 46 6f aracterData.=.GetCharacterFromFo
3860 6e 74 41 73 73 65 74 5f 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f 64 65 2c 20 74 65 6d 70 2c 20 ntAsset_Internal(unicode,.temp,.
3880 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 2c 20 66 6f 6e 74 53 74 79 6c 65 2c 20 66 6f 6e includeFallbacks,.fontStyle,.fon
38a0 74 57 65 69 67 68 74 2c 20 6f 75 74 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 tWeight,.out.isAlternativeTypefa
38c0 63 65 2c 20 6f 75 74 20 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 ce,.out.fontAsset);.............
38e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 61 72 61 63 74 65 72 44 61 74 61 ...............if.(characterData
3900 20 21 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .!=.null).......................
3920 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ...{............................
3940 20 20 72 65 74 75 72 6e 20 63 68 61 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 ..return.characterData;.........
3960 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 .................}..............
3980 20 20 20 20 20 20 20 20 7d 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a ........}..................}....
39a0 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 ............}................ret
39c0 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 urn.null;..........}............
39e0 20 20 2f 2f 2f 20 3c 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 52 65 74 ..///.<summary>..........///.Ret
3a00 75 72 6e 73 20 74 68 65 20 74 65 78 74 20 65 6c 65 6d 65 6e 74 20 28 63 68 61 72 61 63 74 65 72 urns.the.text.element.(character
3a20 29 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 75 6e 69 63 6f 64 65 20 76 61 6c 75 65 20 74 61 ).for.the.given.unicode.value.ta
3a40 6b 69 6e 67 20 69 6e 74 6f 20 63 6f 6e 73 69 64 65 72 61 74 69 6f 6e 20 74 68 65 20 72 65 71 75 king.into.consideration.the.requ
3a60 65 73 74 65 64 20 66 6f 6e 74 20 73 74 79 6c 65 20 61 6e 64 20 77 65 69 67 68 74 2e 0d 0a 20 20 ested.font.style.and.weight.....
3a80 20 20 20 20 20 20 2f 2f 2f 20 46 75 6e 63 74 69 6f 6e 20 73 65 61 72 63 68 65 73 20 74 68 65 20 ......///.Function.searches.the.
3aa0 70 72 6f 76 69 64 65 64 20 6c 69 73 74 20 6f 66 20 66 6f 6e 74 20 61 73 73 65 74 73 2c 20 74 68 provided.list.of.font.assets,.th
3ac0 65 20 6c 69 73 74 20 6f 66 20 66 6f 6e 74 20 61 73 73 65 74 73 20 61 73 73 69 67 6e 65 64 20 61 e.list.of.font.assets.assigned.a
3ae0 73 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 65 73 20 74 6f 20 74 68 65 6d 20 s.alternative.typefaces.to.them.
3b00 61 73 20 77 65 6c 6c 20 61 73 20 74 68 65 69 72 20 66 61 6c 6c 62 61 63 6b 73 2e 0d 0a 20 20 20 as.well.as.their.fallbacks......
3b20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 66 6f 6e 74 20 61 73 73 65 74 20 6f 75 74 20 70 61 72 61 .....///.The.font.asset.out.para
3b40 6d 65 74 65 72 20 63 6f 6e 74 61 69 6e 73 20 61 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 74 68 meter.contains.a.reference.to.th
3b60 65 20 66 6f 6e 74 20 61 73 73 65 74 20 63 6f 6e 74 61 69 6e 69 6e 67 20 74 68 65 20 63 68 61 72 e.font.asset.containing.the.char
3b80 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 54 68 65 20 74 79 70 65 66 61 63 65 acter...........///.The.typeface
3ba0 20 74 79 70 65 20 69 6e 64 69 63 61 74 65 73 20 77 68 65 74 68 65 72 20 74 68 65 20 72 65 74 75 .type.indicates.whether.the.retu
3bc0 72 6e 65 64 20 66 6f 6e 74 20 61 73 73 65 74 20 69 73 20 74 68 65 20 73 6f 75 72 63 65 20 66 6f rned.font.asset.is.the.source.fo
3be0 6e 74 20 61 73 73 65 74 2c 20 61 6e 20 61 6c 74 65 72 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 nt.asset,.an.alternative.typefac
3c00 65 20 6f 72 20 66 61 6c 6c 62 61 63 6b 20 66 6f 6e 74 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 e.or.fallback.font.asset........
3c20 20 20 20 2f 2f 2f 20 3c 2f 73 75 6d 6d 61 72 79 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c ...///.</summary>..........///.<
3c40 70 61 72 61 6d 20 6e 61 6d 65 3d 22 75 6e 69 63 6f 64 65 22 3e 54 68 65 20 75 6e 69 63 6f 64 65 param.name="unicode">The.unicode
3c60 20 76 61 6c 75 65 20 6f 66 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 68 61 72 61 63 74 65 .value.of.the.requested.characte
3c80 72 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 r</param>..........///.<param.na
3ca0 6d 65 3d 22 66 6f 6e 74 41 73 73 65 74 73 22 3e 54 68 65 20 6c 69 73 74 20 6f 66 20 66 6f 6e 74 me="fontAssets">The.list.of.font
3cc0 20 61 73 73 65 74 73 20 74 6f 20 73 65 61 72 63 68 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 .assets.to.search</param>.......
3ce0 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 69 6e 63 6c 75 64 65 46 61 6c 6c 62 ...///.<param.name="includeFallb
3d00 61 63 6b 73 22 3e 44 65 74 65 72 6d 69 6e 65 73 20 69 66 20 74 68 65 20 66 61 6c 6c 62 61 63 6b acks">Determines.if.the.fallback
3d20 20 6f 66 20 65 61 63 68 20 66 6f 6e 74 20 61 73 73 65 74 73 20 6f 6e 20 74 68 65 20 6c 69 73 74 .of.each.font.assets.on.the.list
3d40 20 77 69 6c 6c 20 62 65 20 73 65 61 72 63 68 65 64 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 .will.be.searched</param>.......
3d60 20 20 20 2f 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 66 6f 6e 74 53 74 79 6c 65 22 3e 54 ...///.<param.name="fontStyle">T
3d80 68 65 20 66 6f 6e 74 20 73 74 79 6c 65 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f he.font.style</param>........../
3da0 2f 2f 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 66 6f 6e 74 57 65 69 67 68 74 22 3e 54 68 65 20 //.<param.name="fontWeight">The.
3dc0 66 6f 6e 74 20 77 65 69 67 68 74 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f font.weight</param>..........///
3de0 20 3c 70 61 72 61 6d 20 6e 61 6d 65 3d 22 74 79 70 65 22 3e 44 65 74 65 72 6d 69 6e 65 73 20 69 .<param.name="type">Determines.i
3e00 66 20 74 68 65 20 4f 55 54 20 66 6f 6e 74 20 61 73 73 65 74 20 69 73 20 61 6e 20 61 6c 74 65 72 f.the.OUT.font.asset.is.an.alter
3e20 6e 61 74 69 76 65 20 74 79 70 65 66 61 63 65 20 6f 72 20 66 61 6c 6c 62 61 63 6b 20 66 6f 6e 74 native.typeface.or.fallback.font
3e40 20 61 73 73 65 74 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 70 61 72 .asset</param>..........///.<par
3e60 61 6d 20 6e 61 6d 65 3d 22 66 6f 6e 74 41 73 73 65 74 22 3e 54 68 65 20 66 6f 6e 74 20 61 73 73 am.name="fontAsset">The.font.ass
3e80 65 74 20 74 68 61 74 20 63 6f 6e 74 61 69 6e 73 20 74 68 65 20 72 65 71 75 65 73 74 65 64 20 63 et.that.contains.the.requested.c
3ea0 68 61 72 61 63 74 65 72 3c 2f 70 61 72 61 6d 3e 0d 0a 20 20 20 20 20 20 20 20 2f 2f 2f 20 3c 72 haracter</param>..........///.<r
3ec0 65 74 75 72 6e 73 3e 3c 2f 72 65 74 75 72 6e 73 3e 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 eturns></returns>..........publi
3ee0 63 20 73 74 61 74 69 63 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 47 65 74 43 68 61 72 61 63 c.static.TMP_Character.GetCharac
3f00 74 65 72 46 72 6f 6d 46 6f 6e 74 41 73 73 65 74 73 28 75 69 6e 74 20 75 6e 69 63 6f 64 65 2c 20 terFromFontAssets(uint.unicode,.
3f20 4c 69 73 74 3c 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 3e 20 66 6f 6e 74 41 73 73 65 74 73 2c 20 List<TMP_FontAsset>.fontAssets,.
3f40 62 6f 6f 6c 20 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 2c 20 46 6f 6e 74 53 74 79 6c 65 bool.includeFallbacks,.FontStyle
3f60 73 20 66 6f 6e 74 53 74 79 6c 65 2c 20 46 6f 6e 74 57 65 69 67 68 74 20 66 6f 6e 74 57 65 69 67 s.fontStyle,.FontWeight.fontWeig
3f80 68 74 2c 20 6f 75 74 20 62 6f 6f 6c 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 79 70 65 66 61 ht,.out.bool.isAlternativeTypefa
3fa0 63 65 2c 20 6f 75 74 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 29 ce,.out.TMP_FontAsset.fontAsset)
3fc0 0d 0a 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 73 41 6c 74 65 72 ..........{..............isAlter
3fe0 6e 61 74 69 76 65 54 79 70 65 66 61 63 65 20 3d 20 66 61 6c 73 65 3b 0d 0a 0d 0a 20 20 20 20 20 nativeTypeface.=.false;.........
4000 20 20 20 20 20 20 20 2f 2f 20 4d 61 6b 65 20 73 75 72 65 20 66 6f 6e 74 20 61 73 73 65 74 20 6c .......//.Make.sure.font.asset.l
4020 69 73 74 20 69 73 20 76 61 6c 69 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 66 6f ist.is.valid..............if.(fo
4040 6e 74 41 73 73 65 74 73 20 3d 3d 20 6e 75 6c 6c 20 7c 7c 20 66 6f 6e 74 41 73 73 65 74 73 2e 43 ntAssets.==.null.||.fontAssets.C
4060 6f 75 6e 74 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 ount.==.0)..............{.......
4080 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 6e 75 6c 6c 3b 0d 0a 20 20 ...........fontAsset.=.null;....
40a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 ..............return.null;......
40c0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 69 6e 63 ........}................if.(inc
40e0 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 ludeFallbacks)..............{...
4100 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e ...............if.(k_SearchedFon
4120 74 41 73 73 65 74 73 20 3d 3d 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 tAssets.==.null)................
4140 20 20 20 20 20 20 6b 5f 53 65 61 72 63 68 65 64 46 6f 6e 74 41 73 73 65 74 73 20 3d 20 6e 65 77 ......k_SearchedFontAssets.=.new
4160 20 4c 69 73 74 3c 69 6e 74 3e 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 65 .List<int>();..................e
4180 6c 73 65 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 5f 53 65 61 72 63 lse......................k_Searc
41a0 68 65 64 46 6f 6e 74 41 73 73 65 74 73 2e 43 6c 65 61 72 28 29 3b 0d 0a 20 20 20 20 20 20 20 20 hedFontAssets.Clear();..........
41c0 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 6e 74 20 66 6f 6e 74 41 73 73 ....}................int.fontAss
41e0 65 74 43 6f 75 6e 74 20 3d 20 66 6f 6e 74 41 73 73 65 74 73 2e 43 6f 75 6e 74 3b 0d 0a 0d 0a 20 etCount.=.fontAssets.Count;.....
4200 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 28 69 6e 74 20 69 20 3d 20 30 3b 20 69 20 3c 20 66 ...........for.(int.i.=.0;.i.<.f
4220 6f 6e 74 41 73 73 65 74 43 6f 75 6e 74 3b 20 69 2b 2b 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 ontAssetCount;.i++).............
4240 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 66 6f 6e 74 41 73 73 65 .{..................if.(fontAsse
4260 74 73 5b 69 5d 20 3d 3d 20 6e 75 6c 6c 29 20 63 6f 6e 74 69 6e 75 65 3b 0d 0a 0d 0a 20 20 20 20 ts[i].==.null).continue;........
4280 20 20 20 20 20 20 20 20 20 20 20 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 63 68 61 72 61 63 ............TMP_Character.charac
42a0 74 65 72 44 61 74 61 20 3d 20 47 65 74 43 68 61 72 61 63 74 65 72 46 72 6f 6d 46 6f 6e 74 41 73 terData.=.GetCharacterFromFontAs
42c0 73 65 74 5f 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f 64 65 2c 20 66 6f 6e 74 41 73 73 65 74 73 set_Internal(unicode,.fontAssets
42e0 5b 69 5d 2c 20 69 6e 63 6c 75 64 65 46 61 6c 6c 62 61 63 6b 73 2c 20 66 6f 6e 74 53 74 79 6c 65 [i],.includeFallbacks,.fontStyle
4300 2c 20 66 6f 6e 74 57 65 69 67 68 74 2c 20 6f 75 74 20 69 73 41 6c 74 65 72 6e 61 74 69 76 65 54 ,.fontWeight,.out.isAlternativeT
4320 79 70 65 66 61 63 65 2c 20 6f 75 74 20 66 6f 6e 74 41 73 73 65 74 29 3b 0d 0a 0d 0a 20 20 20 20 ypeface,.out.fontAsset);........
4340 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 63 68 61 72 61 63 74 65 72 44 61 74 61 20 21 3d ............if.(characterData.!=
4360 20 6e 75 6c 6c 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 .null)......................retu
4380 72 6e 20 63 68 61 72 61 63 74 65 72 44 61 74 61 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d rn.characterData;..............}
43a0 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 66 6f 6e 74 41 73 73 65 74 20 3d 20 6e 75 6c 6c ................fontAsset.=.null
43c0 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 0d 0a 20 ;................return.null;...
43e0 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 3d 3d 3d 3d 3d 3d 3d .......}..............//.=======
4400 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================================
4420 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0d 0a ==============================..
4440 20 20 20 20 20 20 20 20 2f 2f 20 46 4f 4e 54 20 45 4e 47 49 4e 45 20 26 20 46 4f 4e 54 20 46 49 ........//.FONT.ENGINE.&.FONT.FI
4460 4c 45 20 4d 41 4e 41 47 45 4d 45 4e 54 20 2d 20 46 69 65 6c 64 73 2c 20 50 72 6f 70 65 72 74 69 LE.MANAGEMENT.-.Fields,.Properti
4480 65 73 20 61 6e 64 20 46 75 6e 63 74 69 6f 6e 73 0d 0a 20 20 20 20 20 20 20 20 2f 2f 20 3d 3d 3d es.and.Functions..........//.===
44a0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================================
44c0 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ================================
44e0 3d 3d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 6f 6f ==............private.static.boo
4500 6c 20 6b 5f 49 73 46 6f 6e 74 45 6e 67 69 6e 65 49 6e 69 74 69 61 6c 69 7a 65 64 3b 0d 0a 0d 0a l.k_IsFontEngineInitialized;....
4520 0d 0a 20 20 20 20 20 20 20 20 70 72 69 76 61 74 65 20 73 74 61 74 69 63 20 62 6f 6f 6c 20 54 72 ..........private.static.bool.Tr
4540 79 47 65 74 43 68 61 72 61 63 74 65 72 46 72 6f 6d 46 6f 6e 74 46 69 6c 65 28 75 69 6e 74 20 75 yGetCharacterFromFontFile(uint.u
4560 6e 69 63 6f 64 65 2c 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 66 6f 6e 74 41 73 73 65 74 2c nicode,.TMP_FontAsset.fontAsset,
4580 20 6f 75 74 20 54 4d 50 5f 43 68 61 72 61 63 74 65 72 20 63 68 61 72 61 63 74 65 72 29 0d 0a 20 .out.TMP_Character.character)...
45a0 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 20 .......{..............character.
45c0 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 69 74 69 61 =.null;................//.Initia
45e0 6c 69 7a 65 20 46 6f 6e 74 20 45 6e 67 69 6e 65 20 6c 69 62 72 61 72 79 20 69 66 20 6e 6f 74 20 lize.Font.Engine.library.if.not.
4600 61 6c 72 65 61 64 79 20 69 6e 69 74 69 61 6c 69 7a 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 already.initialized.............
4620 20 69 66 20 28 6b 5f 49 73 46 6f 6e 74 45 6e 67 69 6e 65 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d .if.(k_IsFontEngineInitialized.=
4640 3d 20 66 61 6c 73 65 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 =.false)..............{.........
4660 20 20 20 20 20 20 20 20 20 46 6f 6e 74 45 6e 67 69 6e 65 45 72 72 6f 72 20 65 72 72 6f 72 20 3d .........FontEngineError.error.=
4680 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 49 6e 69 74 69 61 6c 69 7a 65 46 6f 6e 74 45 6e 67 69 6e 65 .FontEngine.InitializeFontEngine
46a0 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 72 72 6f 72 ();....................if.(error
46c0 20 3d 3d 20 30 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 5f 49 73 .==.0)......................k_Is
46e0 46 6f 6e 74 45 6e 67 69 6e 65 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 FontEngineInitialized.=.true;...
4700 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c ...........}................//.L
4720 6f 61 64 20 74 68 65 20 66 6f 6e 74 20 66 61 63 65 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 oad.the.font.face.for.the.given.
4740 66 6f 6e 74 20 61 73 73 65 74 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f font.asset...............//.TODO
4760 3a 20 41 64 64 20 6d 61 6e 61 67 65 72 20 74 6f 20 6b 65 65 70 20 74 72 61 63 6b 20 6f 66 20 77 :.Add.manager.to.keep.track.of.w
4780 68 69 63 68 20 66 6f 6e 74 20 66 61 63 65 73 20 61 72 65 20 63 75 72 72 65 6e 74 6c 79 20 6c 6f hich.font.faces.are.currently.lo
47a0 61 64 65 64 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 4c 6f aded...............FontEngine.Lo
47c0 61 64 46 6f 6e 74 46 61 63 65 28 66 6f 6e 74 41 73 73 65 74 2e 73 6f 75 72 63 65 46 6f 6e 74 46 adFontFace(fontAsset.sourceFontF
47e0 69 6c 65 2c 20 66 6f 6e 74 41 73 73 65 74 2e 66 61 63 65 49 6e 66 6f 2e 70 6f 69 6e 74 53 69 7a ile,.fontAsset.faceInfo.pointSiz
4800 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 6c 79 70 68 20 67 6c 79 70 68 20 3d e);................Glyph.glyph.=
4820 20 6e 75 6c 6c 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 75 69 6e 74 20 67 6c 79 70 68 49 6e .null;..............uint.glyphIn
4840 64 65 78 20 3d 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 47 65 74 47 6c 79 70 68 49 6e 64 65 78 28 75 dex.=.FontEngine.GetGlyphIndex(u
4860 6e 69 63 6f 64 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 43 68 65 63 6b nicode);................//.Check
4880 20 69 66 20 67 6c 79 70 68 20 69 73 20 61 6c 72 65 61 64 79 20 63 6f 6e 74 61 69 6e 65 64 20 69 .if.glyph.is.already.contained.i
48a0 6e 20 74 68 65 20 66 6f 6e 74 20 61 73 73 65 74 20 61 73 20 74 68 65 20 73 61 6d 65 20 67 6c 79 n.the.font.asset.as.the.same.gly
48c0 70 68 20 6d 69 67 68 74 20 62 65 20 72 65 66 65 72 65 6e 63 65 64 20 62 79 20 6d 75 6c 74 69 70 ph.might.be.referenced.by.multip
48e0 6c 65 20 63 68 61 72 61 63 74 65 72 2e 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 66 le.character...............if.(f
4900 6f 6e 74 41 73 73 65 74 2e 67 6c 79 70 68 4c 6f 6f 6b 75 70 54 61 62 6c 65 2e 54 72 79 47 65 74 ontAsset.glyphLookupTable.TryGet
4920 56 61 6c 75 65 28 67 6c 79 70 68 49 6e 64 65 78 2c 20 6f 75 74 20 67 6c 79 70 68 29 29 0d 0a 20 Value(glyphIndex,.out.glyph))...
4940 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 ...........{..................ch
4960 61 72 61 63 74 65 72 20 3d 20 66 6f 6e 74 41 73 73 65 74 2e 41 64 64 43 68 61 72 61 63 74 65 72 aracter.=.fontAsset.AddCharacter
4980 5f 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f 64 65 2c 20 67 6c 79 70 68 29 3b 0d 0a 0d 0a 20 20 _Internal(unicode,.glyph);......
49a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 ..............return.true;......
49c0 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 47 6c 79 70 68 4c 6f ........}................GlyphLo
49e0 61 64 46 6c 61 67 73 20 67 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 20 3d 20 28 28 47 6c 79 70 68 adFlags.glyphLoadFlags.=.((Glyph
4a00 52 61 73 74 65 72 4d 6f 64 65 73 29 66 6f 6e 74 41 73 73 65 74 2e 61 74 6c 61 73 52 65 6e 64 65 RasterModes)fontAsset.atlasRende
4a20 72 4d 6f 64 65 20 26 20 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 2e 52 41 53 54 45 52 5f rMode.&.GlyphRasterModes.RASTER_
4a40 4d 4f 44 45 5f 48 49 4e 54 45 44 29 20 3d 3d 20 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 MODE_HINTED).==.GlyphRasterModes
4a60 2e 52 41 53 54 45 52 5f 4d 4f 44 45 5f 48 49 4e 54 45 44 20 3f 20 47 6c 79 70 68 4c 6f 61 64 46 .RASTER_MODE_HINTED.?.GlyphLoadF
4a80 6c 61 67 73 2e 4c 4f 41 44 5f 52 45 4e 44 45 52 20 3a 20 47 6c 79 70 68 4c 6f 61 64 46 6c 61 67 lags.LOAD_RENDER.:.GlyphLoadFlag
4aa0 73 2e 4c 4f 41 44 5f 52 45 4e 44 45 52 20 7c 20 47 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 2e 4c s.LOAD_RENDER.|.GlyphLoadFlags.L
4ac0 4f 41 44 5f 4e 4f 5f 48 49 4e 54 49 4e 47 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 OAD_NO_HINTING;................i
4ae0 66 20 28 46 6f 6e 74 45 6e 67 69 6e 65 2e 54 72 79 47 65 74 47 6c 79 70 68 57 69 74 68 55 6e 69 f.(FontEngine.TryGetGlyphWithUni
4b00 63 6f 64 65 56 61 6c 75 65 28 75 6e 69 63 6f 64 65 2c 20 67 6c 79 70 68 4c 6f 61 64 46 6c 61 67 codeValue(unicode,.glyphLoadFlag
4b20 73 2c 20 6f 75 74 20 67 6c 79 70 68 29 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 s,.out.glyph))..............{...
4b40 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 41 64 64 20 6e 65 77 20 63 68 61 72 61 63 ...............//.Add.new.charac
4b60 74 65 72 20 74 6f 20 66 6f 6e 74 20 61 73 73 65 74 20 28 69 66 20 6e 65 65 64 65 64 29 0d 0a 20 ter.to.font.asset.(if.needed)...
4b80 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 63 68 61 72 61 63 74 65 72 20 3d 20 66 6f 6e 74 41 ...............character.=.fontA
4ba0 73 73 65 74 2e 41 64 64 43 68 61 72 61 63 74 65 72 5f 49 6e 74 65 72 6e 61 6c 28 75 6e 69 63 6f sset.AddCharacter_Internal(unico
4bc0 64 65 2c 20 67 6c 79 70 68 29 3b 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 de,.glyph);....................r
4be0 65 74 75 72 6e 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 eturn.true;..............}......
4c00 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 ..........return.false;.........
4c20 20 7d 0d 0a 0d 0a 0d 0a 20 20 20 20 20 20 20 20 70 75 62 6c 69 63 20 73 74 61 74 69 63 20 62 6f .}..............public.static.bo
4c40 6f 6c 20 54 72 79 47 65 74 47 6c 79 70 68 46 72 6f 6d 46 6f 6e 74 46 69 6c 65 28 75 69 6e 74 20 ol.TryGetGlyphFromFontFile(uint.
4c60 67 6c 79 70 68 49 6e 64 65 78 2c 20 54 4d 50 5f 46 6f 6e 74 41 73 73 65 74 20 66 6f 6e 74 41 73 glyphIndex,.TMP_FontAsset.fontAs
4c80 73 65 74 2c 20 6f 75 74 20 47 6c 79 70 68 20 67 6c 79 70 68 29 0d 0a 20 20 20 20 20 20 20 20 7b set,.out.Glyph.glyph)..........{
4ca0 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 67 6c 79 70 68 20 3d 20 6e 75 6c 6c 3b 0d 0a 0d 0a 20 ..............glyph.=.null;.....
4cc0 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 49 6e 69 74 69 61 6c 69 7a 65 20 46 6f 6e 74 20 45 6e ...........//.Initialize.Font.En
4ce0 67 69 6e 65 20 6c 69 62 72 61 72 79 20 69 66 20 6e 6f 74 20 61 6c 72 65 61 64 79 20 69 6e 69 74 gine.library.if.not.already.init
4d00 69 61 6c 69 7a 65 64 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 6b 5f 49 73 46 6f 6e ialized..............if.(k_IsFon
4d20 74 45 6e 67 69 6e 65 49 6e 69 74 69 61 6c 69 7a 65 64 20 3d 3d 20 66 61 6c 73 65 29 0d 0a 20 20 tEngineInitialized.==.false)....
4d40 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 6e ..........{..................Fon
4d60 74 45 6e 67 69 6e 65 45 72 72 6f 72 20 65 72 72 6f 72 20 3d 20 46 6f 6e 74 45 6e 67 69 6e 65 2e tEngineError.error.=.FontEngine.
4d80 49 6e 69 74 69 61 6c 69 7a 65 46 6f 6e 74 45 6e 67 69 6e 65 28 29 3b 0d 0a 0d 0a 20 20 20 20 20 InitializeFontEngine();.........
4da0 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 65 72 72 6f 72 20 3d 3d 20 30 29 0d 0a 20 20 20 20 ...........if.(error.==.0)......
4dc0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6b 5f 49 73 46 6f 6e 74 45 6e 67 69 6e 65 49 6e ................k_IsFontEngineIn
4de0 69 74 69 61 6c 69 7a 65 64 20 3d 20 74 72 75 65 3b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d itialized.=.true;..............}
4e00 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 4c 6f 61 64 20 74 68 65 20 66 6f 6e 74 ................//.Load.the.font
4e20 20 66 61 63 65 20 66 6f 72 20 74 68 65 20 67 69 76 65 6e 20 66 6f 6e 74 20 61 73 73 65 74 2e 0d .face.for.the.given.font.asset..
4e40 0a 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 20 54 4f 44 4f 3a 20 41 64 64 20 6d 61 6e 61 67 65 .............//.TODO:.Add.manage
4e60 72 20 74 6f 20 6b 65 65 70 20 74 72 61 63 6b 20 6f 66 20 77 68 69 63 68 20 66 6f 6e 74 20 66 61 r.to.keep.track.of.which.font.fa
4e80 63 65 73 20 61 72 65 20 63 75 72 72 65 6e 74 6c 79 20 6c 6f 61 64 65 64 2e 0d 0a 20 20 20 20 20 ces.are.currently.loaded........
4ea0 20 20 20 20 20 20 20 46 6f 6e 74 45 6e 67 69 6e 65 2e 4c 6f 61 64 46 6f 6e 74 46 61 63 65 28 66 .......FontEngine.LoadFontFace(f
4ec0 6f 6e 74 41 73 73 65 74 2e 73 6f 75 72 63 65 46 6f 6e 74 46 69 6c 65 2c 20 66 6f 6e 74 41 73 73 ontAsset.sourceFontFile,.fontAss
4ee0 65 74 2e 66 61 63 65 49 6e 66 6f 2e 70 6f 69 6e 74 53 69 7a 65 29 3b 0d 0a 0d 0a 20 20 20 20 20 et.faceInfo.pointSize);.........
4f00 20 20 20 20 20 20 20 47 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 20 67 6c 79 70 68 4c 6f 61 64 46 .......GlyphLoadFlags.glyphLoadF
4f20 6c 61 67 73 20 3d 20 28 28 47 6c 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 29 66 6f 6e 74 41 73 lags.=.((GlyphRasterModes)fontAs
4f40 73 65 74 2e 61 74 6c 61 73 52 65 6e 64 65 72 4d 6f 64 65 20 26 20 47 6c 79 70 68 52 61 73 74 65 set.atlasRenderMode.&.GlyphRaste
4f60 72 4d 6f 64 65 73 2e 52 41 53 54 45 52 5f 4d 4f 44 45 5f 48 49 4e 54 45 44 29 20 3d 3d 20 47 6c rModes.RASTER_MODE_HINTED).==.Gl
4f80 79 70 68 52 61 73 74 65 72 4d 6f 64 65 73 2e 52 41 53 54 45 52 5f 4d 4f 44 45 5f 48 49 4e 54 45 yphRasterModes.RASTER_MODE_HINTE
4fa0 44 20 3f 20 47 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 2e 4c 4f 41 44 5f 52 45 4e 44 45 52 20 3a D.?.GlyphLoadFlags.LOAD_RENDER.:
4fc0 20 47 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 2e 4c 4f 41 44 5f 52 45 4e 44 45 52 20 7c 20 47 6c .GlyphLoadFlags.LOAD_RENDER.|.Gl
4fe0 79 70 68 4c 6f 61 64 46 6c 61 67 73 2e 4c 4f 41 44 5f 4e 4f 5f 48 49 4e 54 49 4e 47 3b 0d 0a 0d yphLoadFlags.LOAD_NO_HINTING;...
5000 0a 20 20 20 20 20 20 20 20 20 20 20 20 69 66 20 28 46 6f 6e 74 45 6e 67 69 6e 65 2e 54 72 79 47 .............if.(FontEngine.TryG
5020 65 74 47 6c 79 70 68 57 69 74 68 49 6e 64 65 78 56 61 6c 75 65 28 67 6c 79 70 68 49 6e 64 65 78 etGlyphWithIndexValue(glyphIndex
5040 2c 20 67 6c 79 70 68 4c 6f 61 64 46 6c 61 67 73 2c 20 6f 75 74 20 67 6c 79 70 68 29 29 0d 0a 20 ,.glyphLoadFlags,.out.glyph))...
5060 20 20 20 20 20 20 20 20 20 20 20 7b 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f ...........{..................//
5080 20 41 64 64 20 6e 65 77 20 67 6c 79 70 68 20 74 6f 20 66 6f 6e 74 20 61 73 73 65 74 20 28 69 66 .Add.new.glyph.to.font.asset.(if
50a0 20 6e 65 65 64 65 64 29 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2f 2f 66 6f 6e 74 .needed)..................//font
50c0 41 73 73 65 74 2e 41 64 64 47 6c 79 70 68 5f 49 6e 74 65 72 6e 61 6c 28 67 6c 79 70 68 29 3b 0d Asset.AddGlyph_Internal(glyph);.
50e0 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 72 65 74 75 72 6e 20 74 72 75 65 3b 0d ...................return.true;.
5100 0a 20 20 20 20 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 20 20 20 20 20 20 20 20 72 65 .............}................re
5120 74 75 72 6e 20 66 61 6c 73 65 3b 0d 0a 20 20 20 20 20 20 20 20 7d 0d 0a 0d 0a 20 20 20 20 7d 0d turn.false;..........}........}.
5140 0a 7d 0d 0a 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 16 00 00 00 54 4d 50 5f .}..........................TMP_
5160 46 6f 6e 74 41 73 73 65 74 55 74 69 6c 69 74 69 65 73 00 00 05 00 00 00 54 4d 50 72 6f 00 00 00 FontAssetUtilities......TMPro...