Spaces and some other fonts are changed to rectangles?

Try cleaning your font caches - the simplest way is to use a maintenance utility such as Lion Cache Cleaner.