Follow-up Comment #5, bug #34740 (project gnustep):

i am using the art backend. actually i'd like to use the plain x backend but i
don't see any fonts when using it ... is this a known issue?

ok following your suggestions i added

 NSLog(@" bpp %i %i %i %i %i %i %i", bpp, (int)[theImg size].width,
(int)[theImg size].height, (int)[bitmap size].width, (int)[bitmap
size].height, (int)[bitmap bytesPerRow], (int)[bitmap bitsPerPixel]);

for the "broken" png this prints:

bpp 4 191 191 192 192 768 32

and in the good case

bpp 4 192 192 192 192 768 32

so we see that the problem is that:
1.) loading PNGs with NSImage results in images that are 1 pixel smaller in
both dimensions in some cases like BUG.png and BUG2.png (thats the real bug)
2.) generating a NSBitmapImageRep via initWithFocusedViewRect can have larger
dimensions than the passed rect (does the specification allow this? seems like
a bug to me too)

 


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34740>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to