Okay, I made an attempt to figure out and fix this bug. Nautilus uses the "text-x-preview" icon for text previews. To know where to draw the text, it needs a "text-x-preview.icon" file in the same directory as the icon image. This file has the coordinates of the box where the text is drawn over the icon.
In gnome-icon-theme 2.28, the files were at scalable/mimetypes/text-x-preview.svg and scalable/mimetypes/text-x-preview.icon. There were text-x-preview.png icons offered at sizes smaller than 48x48, but no .icon files for them. Yet, the previews still displayed at those smaller sizes; I'm not sure why that is. Anyway, in gnome-icon-theme 2.30, the scalable/mimetypes/ directory is gone, and so is the only text-x-preview.icon file. Since I can't recreate the SVG icon (and I assume it was removed for a reason), I chose to create a text-x-preview.icon file for the 48x48 icon as a test (since that's the icon size I use normally). The first thing I noticed was the same thing I noticed originally when I filed this bug report: the preview icon is shifted to the left a few pixels. I have no idea why this is, but I can't see it as anything other than a bug, so I used the GIMP to move it back to center. Writing the .icon file was pretty easy. I just had to experiment with the coordinates until the text fit snugly in the icon. The end result is one modified file and one new one: 48x48/mimetypes/text-x-preview.png and 48x48/mimetypes/text-x-preview.icon. Those two files are attached. This only works for the 48x48 icon size, obviously, so it's still incomplete. I'm not even sure if this is the right way to go about it. Any additional help would be very appreciated. Does this affect upstream? Brian
[Icon Data] EmbeddedTextRectangle=9,4,30,41
<<attachment: text-x-preview.png>>
signature.asc
Description: Digital signature

