Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37723195
en ru br
ALT Linux repositórios
S:2.4.7-alt1
5.0: 1.3.10-alt1
4.1: 1.3.10-alt0.M41.4
+updates:1.3.9-alt1.M41.1
4.0: 1.2.12-alt6.M40.9
+updates:1.2.12-alt6.M40.8
3.0: 1.1.20-alt14.1

Group :: Sistema/Servidores
RPM: cups

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: cups-1.1.20-alt-texttops-nimbus.patch
Download


diff -Naur cups-1.1.20/filter/texttops.c cups-1.1.20.new/filter/texttops.c
--- cups-1.1.20/filter/texttops.c	2004-03-17 18:20:01 +0300
+++ cups-1.1.20.new/filter/texttops.c	2004-03-17 18:19:23 +0300
@@ -53,6 +53,22 @@
 int		Directions[256];/* Text directions for each font */
 
 
+/**
+ * convert font name to appropriate nimbus font
+ */
+const char *nimbus_name(const char* font)
+{
+    if (!strcmp(font,"Courier"))
+	return	"NimbusMonL-Regu";
+    else if(!strcmp(font,"Courier-Bold"))
+	return "NimbusMonL-Bold";
+    else if(!strcmp(font,"Courier-Oblique"))
+	return "NimbusMonL-ReguObli";
+    else if(!strcmp(font,"Courier-BoldOblique"))
+	return "NimbusMonL-BoldObli";
+    else
+	return font;
+}
 /*
  * Local functions...
  */
@@ -842,7 +858,7 @@
 
     for (i = PrettyPrint ? 2 : 1; i >= 0; i --)
     {
-      printf("/%s findfont\n", Fonts[0][i]);
+      printf("/%s findfont\n", nimbus_name(Fonts[0][i]));
       puts("dup length 1 add dict begin\n"
 	   "	{ 1 index /FID ne { def } { pop pop } ifelse } forall\n"
 	   "	/Encoding cupsEncoding00 def\n"
@@ -862,7 +878,7 @@
     for (i = 1 + PrettyPrint; i >= 0; i --)
       for (j = 0; j < NumFonts; j ++)
       {
-	printf("/%s findfont\n", Fonts[j][i]);
+	printf("/%s findfont\n", nimbus_name(Fonts[j][i]));
 	printf("dup length 1 add dict begin\n"
 	       "	{ 1 index /FID ne { def } { pop pop } ifelse } forall\n"
 	       "	/Encoding cupsEncoding%02x def\n"
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009