Пример #1
0
        public static HwpV3FontShape Create(BinaryReader reader)
        {
            HwpV3FontShape result = new HwpV3FontShape();

            // 글꼴 크기
            result.FontSize = reader.ReadHUnit();

            // 언어 별 글꼴 인덱스
            result.FontIndicesByLanguage = reader.ReadBytes(7);

            // 언어 별 장평 비율
            result.SetWidthByLanguage = reader.ReadBytes(7);

            // 언어 별 자간 비율
            result.CharacterWidthByLanguage = reader.ReadSBytes(7);

            // 음영색 인덱스
            result.ShadeIndex = reader.ReadByte();

            // 글자색 인덱스
            result.TextColorIndex = reader.ReadByte();

            // 음영 비율
            result.ShadeRate = reader.ReadByte();

            // 속성
            result.Property = reader.ReadByte();

            // 예약 필드
            result.Reserved = reader.ReadBytes(4);

            return(result);
        }
Пример #2
0
        public static HwpV3DocumentStyle Create(BinaryReader reader)
        {
            HwpV3DocumentStyle result = new HwpV3DocumentStyle();

            // 스타일 이름
            result.StyleName = reader.ReadKCharString(20);

            // 글자 모양
            result.FontShape = HwpV3FontShape.Create(reader);

            // 문단 모양
            result.ParagraphShape = HwpV3ParagraphShape.Create(reader);

            return(result);
        }