コード例 #1
0
ファイル: FontAsset.cs プロジェクト: klanggames/UIForia
 public FontAsset(TMP_FontAsset tmpFontAsset)
 {
     tmpFontAsset.ReadFontAssetDefinition();
     this.textMeshProFont = tmpFontAsset;
     this.name            = tmpFontAsset.name;
     this.id                  = tmpFontAsset.GetInstanceID();
     this.faceInfo            = tmpFontAsset.faceInfo;
     this.atlas               = tmpFontAsset.atlasTexture;
     this.boldSpacing         = tmpFontAsset.boldSpacing;
     this.gradientScale       = tmpFontAsset.material.GetFloat(ShaderUtilities.ID_GradientScale);
     this.kerningDictionary   = ConvertKerning(tmpFontAsset);
     this.characterDictionary = ConvertCharacters(tmpFontAsset);
     this.boldStyle           = tmpFontAsset.boldStyle;
     this.normalStyle         = tmpFontAsset.normalStyle;
     this.normalSpacingOffset = tmpFontAsset.normalSpacingOffset;
     this.italicStyle         = tmpFontAsset.italicStyle;
     this.weightNormal        = tmpFontAsset.normalStyle;
     this.weightBold          = tmpFontAsset.boldStyle;
 }