File: doptypography.c

package info (click to toggle)
abiword 0.7.7-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 20,604 kB
  • ctags: 18,358
  • sloc: cpp: 88,791; ansic: 66,296; sh: 7,777; makefile: 3,397; xml: 687; perl: 361; awk: 273; sed: 36; csh: 28
file content (24 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <string.h>
#include <stdio.h>
#include "wv.h"

void wvGetDOPTYPOGRAPHY(DOPTYPOGRAPHY *dopt,FILE *fd)
	{
	int i;
	U16 temp16=read_16ubit(fd);
	
	dopt->fKerningPunct = temp16&0x0001;
	dopt->iJustification = (temp16&0x0006)>>1;
	dopt->iLevelOfKinsoku = (temp16&0x0018)>>3;
	dopt->f2on1 = (temp16&0x0020)>>5;
	dopt->reserved = (temp16&0xFFC0)>>6;

	dopt->cchFollowingPunct = read_16ubit(fd);
	dopt->cchLeadingPunct = read_16ubit(fd);

	for (i=0;i<101;i++)
		dopt->rgxchFPunct[i] = read_16ubit(fd);

	for (i=0;i<51;i++)
		dopt->rgxchLPunct[i] = read_16ubit(fd);
	}