summaryrefslogtreecommitdiffstats
path: root/krfb/libvncserver/bdf2c.pl
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-10 16:02:54 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-10 16:02:54 -0600
commitf6187cc4eb8a8726f5b64f0c640ac8d2355b85eb (patch)
treed5c3b93286335d890339446d15e35c9cc97703d1 /krfb/libvncserver/bdf2c.pl
parentdedd07e78dee71fd8cde6a39e2ccc89fdbb8a782 (diff)
downloadtdenetwork-f6187cc4eb8a8726f5b64f0c640ac8d2355b85eb.tar.gz
tdenetwork-f6187cc4eb8a8726f5b64f0c640ac8d2355b85eb.zip
Port to standard shared libvncserver and delete old buggy libvncserver library sources
Note that this DOES NOT WORK as some TDE-specific changes to libvncserver will be required The commit is a "clean slate" for the TDE-specific changes to follow
Diffstat (limited to 'krfb/libvncserver/bdf2c.pl')
-rw-r--r--krfb/libvncserver/bdf2c.pl60
1 files changed, 0 insertions, 60 deletions
diff --git a/krfb/libvncserver/bdf2c.pl b/krfb/libvncserver/bdf2c.pl
deleted file mode 100644
index fc437127..00000000
--- a/krfb/libvncserver/bdf2c.pl
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/perl
-
-@encodings=();
-for($i=0;$i<256*5;$i++) {
- $encodings[$i]="0";
-}
-
-$out="";
-$counter=0;
-$fontname="default";
-
-$i=0;
-$searchfor="";
-$nullx="0x";
-
-while(<>) {
- if(/^FONT (.*)$/) {
- $fontname=$1;
- $fontname=~y/\"//d;
- } elsif(/^ENCODING (.*)$/) {
- $glyphindex=$1;
- $searchfor="BBX";
- $dwidth=0;
- } elsif(/^DWIDTH (.*) (.*)/) {
- $dwidth=$1;
- } elsif(/^BBX (.*) (.*) (.*) (.*)$/) {
- ($width,$height,$x,$y)=($1,$2,$3,$4);
- @encodings[$glyphindex*5..($glyphindex*5+4)]=($counter,$width,$height,$x,$y);
- if($dwidth != 0) {
- $encodings[$glyphindex*5+1]=$dwidth;
- } else {
- $dwidth=$width;
- }
- $searchfor="BITMAP";
- } elsif(/^BITMAP/) {
- $i=1;
- } elsif($i>0) {
- if($i>$height) {
- $i=0;
- $out.=" /* $glyphindex */\n";
- } else {
- if(int(($dwidth+7)/8) > int(($width+7)/8)) {
- $_ .= "00"x(int(($dwidth+7)/8)-int(($width+7)/8));
- }
- $_=substr($_,0,(int(($dwidth+7)/8)*2));
- $counter+=(int(($dwidth+7)/8));
- s/(..)/$nullx$1,/g;
- $out.=$_;
- $i++;
- }
- }
-}
-
-print "unsigned char " . $fontname . "FontData[$counter]={\n" . $out;
-print "};\nint " . $fontname . "FontMetaData[256*5]={\n";
-for($i=0;$i<256*5;$i++) {
- print $encodings[$i] . ",";
-}
-print "};\nrfbFontData " . $fontname . "Font={" .
- $fontname . "FontData, " . $fontname . "FontMetaData};\n";