MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / CharDef

Class CharDef

TexturedFontEditor/FontEditor.cs:887–1034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

885 public class FontDef
886 {
887 public class CharDef
888 {
889 private char _Character; // 字符
890 private Font _SrcFont; // 渲染所用字体
891 private Color _FontColor = Color.Black; // 渲染所用颜色
892 private int _Advance = 1; // 额外前进量
893 private int _Baseline = 0; // 额外基线
894 private int _ImageMargin = 1; // 图像保留边界
895
896 private Size _CharSize = new Size(); // 字符大小
897 private Point _Location = new Point();// 位置
898
899 [Category("文字")]
900 [DisplayName("字符")]
901 [Description("指定字符。")]
902 public char Character
903 {
904 get
905 {
906 return _Character;
907 }
908 set
909 {
910 _Character = value;
911 }
912 }
913
914 [Category("文字")]
915 [DisplayName("字体")]
916 [Description("指定字体。")]
917 public Font SrcFont
918 {
919 get
920 {
921 return _SrcFont;
922 }
923 set
924 {
925 _SrcFont = value;
926 }
927 }
928
929 [Category("文字")]
930 [DisplayName("颜色")]
931 [Description("指定字体颜色。")]
932 public Color FontColor
933 {
934 get
935 {
936 return _FontColor;
937 }
938 set
939 {
940 _FontColor = value;
941 }
942 }
943
944 [Category("定位")]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected