[Bug 495577] Review Request: xsw - A simple slideshow producer and viewer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=495577





--- Comment #4 from Jussi Lehtola <jussi.lehtola@xxxxxx>  2009-04-17 04:58:21 EDT ---
Just patch the source code, then there's no need to ship fonts or make symlinks
altogether.

I'm not fluent enough in sed to be able to write a loop that replaces the
occurrences in src/execute.c due to the double quotes:

   font = TTF_OpenFont(DATADIR "VeraBd.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraSeBd.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraMono.ttf", txt->size);
   font = TTF_OpenFont(DATADIR "VeraBd.ttf", txt->size);
   fprintf(stderr, "Default font %s could not be found. Are you sure you typed
'make install' after compiling xsd?", DATADIR "VeraBd.ttf");

Something of the like of 

for font in VeraBd.ttf VeraSeBd.ttf VeraMono.ttf; do
 sed -i 's|DATADIR "$font"|"/usr/share/fonts/bitstream-vera/$font"|g'
src/execute.c
done

should do the trick.


If you can't get that to work, then you can always patch the source code file
and replace
 DATADIR "VeraBd.ttf"
with
 "@VERABD@"
and so on, and then just run sed to replace @VERABD@ et al with the correct
paths in the spec file.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Fedora-package-review mailing list
Fedora-package-review@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-package-review

[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]