X11 and g++ font problem

hi,
I am experiencing some fonts problem with x11 when using g++, g++'s error messages contains some funny fonts under x11. For example, when compiling the following code, I get:
1 void function_name() {
2 int u; // to create a compile warning
3 }
4
5 int main () {
6 int a; // to create a compile warning "unused variable"
7 yy ul; // to create a compile error
8 }
g++ -Wall t.C
t.C: In function ‘void function_name()’:
t.C:2: warning: unused variable ‘u’
t.C: In function ‘int main()’:
t.C:7: error: ‘yy’ was not declared in this scope
t.C:7: error: expected `;' before ‘ul’
t.C:6: warning: unused variable ‘a’
which is normal, but on my xterm under x11, i get "\hat{a}" for all the symbols enclosed by ` and ' . I could not cut-and-paste the errors on this message. For example: `void function_name()' in the first line is shown on my xterm as "\hat{a}"
My system configuration is: OS: 10.5, X11.app 2.0 - X.org X11R7.2, gcc version 4.0.1 (Apple Inc. build 5465)
Thanks in advance for the help.
Sincerely,
Hwee Kuan

Post to the Unix or Developer forum under OS X Technologies.

Similar Messages

  • Preview and Adobe fonts problem/missing in PDF

    I have a PDF document that doesn't show some fonts. The PDF was displaying fine on preview and then all of the sudden the next day it got messed up. I didn't performed any update or installed any new app. The problem persists in both Preview app and Adobe Reader; at least Adobe tells me: "Cannot find or create the font 'BYGBIR+Helvetica-12-0'. Some characters may not display or print correctly." Here's a screen shot of what it looks like.

    L Huffman,
    First of all, Welcome to the Discussions!
    Try to select one of files in question by clicking once and then press the key combo command + i or go to the File menu and select Get Info.
    Once the Get Info pane is open drop down (if not already in the open position) the disclosure triangle next to "Open with:" and change the application that will open "this" file. To change all files of the type make sure to click on the "Change All" button.
    That should do it....post back if that is not what you are trying to do.
    littleshoulders [:-)

  • Newbie layout question - positioning of content on a wedding invitation, and cursive font problem

    Hello,
    Let me just state that I am a complete newbie to InDesign. I literally installed it for the first time ever the other night. I have a Creative Cloud subscription for the video editing utilities, but upon being tasked with creating a wedding invitation I realized I should give it a go. Can't be THAT hard, right?
    I actually managed to squeeze something out that wasn't half bad (by my standards), but I have two remaining issues that I couldn't figure out so far. In addition, I really know nothing of the jargon. So please forgive me for my childlike descriptions of things that you guys probably have proper words for.
    1. Main page layout
    The invitation (the actual paper) isn't a size that exists as a preset. It is 22cm x 16.4cm in landscape mode, and there is a vertical fold in the center, so that it can be folded into a little "magazine". Well, if you do that, and count the first page as page 1, then all of the stuff I'm making goes on page 3 - the right hand, "inside" page. When I created the document in InDesign, I got the dimensions in there, I told it to create a two column layout, and tried to emulate the size of the fold (only a couple of millimeters). On the screen it looks good, but when I print to my Canon MG8250, the whole body of text (it's all centered, like horrible web design of old) is obviously placed too far to the left. The left side of one centered line of text is 1.9cm from the left side of the page (the fold in the middle of the paper), while the right side of the same text is 3.5cm from the right side of the page. Another shorter line is 2.7cm from the left side and 4.4cm from the right side (all measurements somewhat approximate). All text boxes are made to be the same width as the "title safe" part of the page (i.e. the pink/purple guidelines that InDesign made for me), and the text is centered within them. Now, my basic math skills tells me "How about you move the right margin about 0.8cm to the right - that'll make it look right!" - however, is that the right way to go about this? Anyone care to weigh in to help me see the light?
    2. Centering of italic fonts
    Two pieces of the text uses an italic font - the names of the bride and groom, and the names of the people the invitation is for. I liked the look of the "Kunstler Script" font, so I went with it. However, in comparison to the rest of the text (which uses the default Minion Pro for now), the italic text does not look centered at all. Of course, I see the problem knowing where the "center" actually is, because the baseline is much further to the left than the top of the letters. All I know as a layman is that InDesign and I have very different ideas about what centering actually means. Compared to the other text lines, the Kunstler Script lines appear to be much further to the right. I did another measurement. From the leftmost pixel of a name line to the leftmost pixel of the next line below, we have 0.7cm difference (the name line being wider). However, the rightmost pixel of the name line compared to the rightmost pixel of the line below is 1.5cm further to the right. Is it possible to center this in a fashion that makes it actually appear centered to a human?
    Any help would be greatly appreciated!
    Thanks!

    Can you post some screen shots to show us the centering problem?
    as for the page layout, it may work better to set you page size to the folded size of your invitation. Just do the layout in order the way you would read it, and use print booklet to output it.
    or, if you need to set it up on just two pages, do it like this:

  • App worked fine with old SDK, new SDk launches and crashes, font problem?

    So there is something my app doesn't like about 2.1. Here is my crash log. It's complaining about a font? Any ideas? This is the same version that worked fine in the old SDK. It crashes running on the 2.0 simulator or 2.1 simulator.
    [Session started at 2008-09-09 22:30:29 -0700.]
    2008-09-09 22:30:31.194 iLeaseMyCar[3528:20b] * Assertion failure in -[UILabel setFont:], /SourceCache/UIKit/UIKit-738/UILabel.m:438
    2008-09-09 22:30:31.195 iLeaseMyCar[3528:20b] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: font != nil'
    2008-09-09 22:30:31.197 iLeaseMyCar[3528:20b] Stack: (
    2468294987,
    2480804091,
    2468294443,
    2471410724,
    817183141,
    817926218,
    837317240,
    837317032,
    837315376,
    837314643,
    2467789250,
    2467796004,
    2467798264,
    829005112,
    829005309,
    816175835,
    816221412
    )

    deleted a button on my view in IB and it stopped crashing. So I recreated the button and now it works fine... wierd. Phew, I'm up and running again with the new sdk. Wierd problem.

  • Safari and Mail fonts problem 10.4.2

    So I cleaned my fonts up and left the core fonts in system>library>fonts as one is supposed to but now I get this [img src="http://www.markclay.net/Picture%201.png]. Mail also presents the same problem .
    Firefox offers no such problem.
    I've set the fonts on safari and mail to be one's I know are running but to no avail. Any clues?
    Thanks
    Marko

    What the h was going on
    there then?
    Some non-Unicode fonts that users install are constructed in ways that make them incompatible with OS X Cocoa apps, because they will replace the real fonts and generate gibberish. Helvetica Fractions and Times Phonetic are the two most common.

  • PLZ HELP. Mac and windows font problems in images desciptions

    Hello everyone,
    macintosh, windows, Bridge CS3, Greek language
    My husband went away for a month and showed me and asked me to put descriptions in Bridge for about 600 photographs in his office macintosh. But I did not do this in the office. I took the paper with the descriptions and the photographs home, and did that in Windows.
    But today in the office it is all wrong.
    I must tell you that everything is writen in Greek language. Is this why evrything looks wrong?
    Is something I can do to fix this?
    Please help me. Thank you
    Artemis

    Ramon,
    Thank you for answering
    OpenType fonts like Arial or Times New Roman or Verdana?
    How do I make both computers use the same character encoding. If I have character utf-8 in windows How do I make the Mac use the same? If I change this will it give problewms with other applications in Mac?
    Also any idea about script that can write the descriptions from my document to the images?
    Thankyou
    Artemis

  • Flash Font Problems

    I'm using Flash CS4 and have wasted--over the course of the past 18 months--at least three days of work time trying, in vain, to make Flash fonts work completely consistently.
    Problems: 1) Fonts don't appear after FontAgent activation (must copy to Adobe/Fonts folder), 2) Bits of styled type totally disappear on compile (haven't figured this one out and try to avoid certain faces), 3) and most recently, totally bizarre font display (looks like egg thrown against the wall), which, despite verifying the fonts, replacing them (even though they checked out fine), cleaning the font caches (with Font Finagler, nee Font Cache Cleaner), doing a million restarts and praying, are still screwed up.
    One possible common thread is that these seems to be OpenType fonts. But the errors are totally inconsistent -- for example, the font with #3 above had worked fine for nearly a year before becoming hopelessly destroyed in the past five hours, and only *some* characters in #2 disappear.
    I'm posting here mostly out of frustration, since previous posts on similar issues haven't yielded decent (working) solutions and Googling these problems (ad nauseam) mostly shows people using either different font managers (or none at all) or working with dynamic text. (Mine is static text.)
    But perhaps someone has a definitive resource/recipe for troubleshooting and solving these font problems?
    Or perhaps someone could shed some light on why Adobe uses separate font folders and caches?

    OK, well! It seems that I'm **not** crazy. I just read in TidBITS today that what I saw last week was related to a bug in Mac OS X 10.6.7, which apparently fixed some font security problems, but broke something having to do with OpenType fonts. I guess I made the mistake of being on the bleeding edge.
    http://db.tidbits.com/article/12078
    I stick by my general complaint, however. Adobe or some good member of the community should create a definitive resource for understanding and solving font problems in Flash. I've spent a lot of time looking for answers to my questions in Adobe help docs, in questions posted on these forums, and Googling for solutions -- and have seen many, many others expressing my same frustration of wasted time and so-so answers. Since fonts are critical to pretty much every Flash project, this should be information that is **easy** to find.

  • Very weird font problem

    I have a very weird and annoying font problem with the left menu bar of iTunes 8.2(23)
    Some but not all menu items are displayed like a mix of Hebrew and unprintable caracters.
    But once the menu item is selected, the font is back to normal !
    The weired thing is that TV Series and Shopping cart menu items are displayed (in French, because the interface is in French) as expected.
    I don't know if it is related, but I have Russian-PC keyboard installed too, Adobe CS4 (which installed Adobe fonts) and my OS interface is in French.

    How did you go about finding this Lucida Grande.ttf? I did a search and didn't find it. I have the same weird font thing in itunes. I recently installed a whack of fonts from another computer. Any help would be appreciated.

  • Wine and yet another font problem

    So I upgraded my system (had to load lots of stuff, Xorg, Wine, the kernel..) and now my Wine fonts look like this:
    http://koti.kapsi.fi/anpurola/winecfg.png
    Some fonts are ok, but most of them are unreadable. I mostly run poker clients. I tried to delete my .wine directory, and install fonts again with winetricks, didn't help.
    Does this have something to do with the new Xorg? I had to remove RgbPath and AutoAddDevices from xorg.conf BTW, to get it work.
    Last edited by strummer (2008-12-08 12:12:31)

    LTSmash wrote:
    strummer wrote:
    sunday wrote:
    I've found this help:
    Using wine over remote X11 sessions and No text or damaged text displayed
    Please make sure not have added any fonts to wine. Font conflicts can sometimes cause a similar issue. If a fresh wine prefix.(A copy of wine that nothing has been done to yet) Is having this problem. Try setting following in registry
    [HKEY_CURRENT_USER\Software\Wine\X11 Driver]
    "ClientSideWithRender"="N"
    Place above in text file and it can be inserted into registry by "regedit settings.txt".
    This was report as been required of OS X on the 1 Dec 2007. This may change. Please apply only as required.
    but it doesn't work for me. Anybody has an idea how to do it?
    Wow it works! Thank you! Too bad if some of you still have problems.. BTW I'm using nvidia-96xx driver.
    edit: Now that I tried different programs, I noticed some of the graphics won't work For example, I don't see any buttons in programs such as Spotify or Full Tilt Poker client..
    Whoa thanks. It worked for me too.
    how you ran regedit?
    Last edited by na12 (2008-12-31 10:46:54)

  • Problem with Finder and Menu Fonts (uppercase A)

    Hello --
    I'm having a problem with fonts. All the characters that appear under icons in the Finder or in the menu for any application appear as uppercase As with boxes around them. There appears to be one uppercase A for each character that should be there. If I click-pause-click to edit the filename in the Finder, the text appears normal during the duration of the change, and then reverts to uppercase A with a box around it again. All other operation of the computer is normal.
    I was watching and downloading video files in iTunes when the problem appeared. When I pressed ESC to exit full-screen mode, the Finder said that my start-up disk was almost full, and I saw the font problem. Upon investigating, I discovered that my start-up disk was completely full (and the download had failed), so the first thing I did was move some video files to an external drive, which freed about 5 GB.
    Since freeing the space, I've tried the following to fix it, in this order:
    1. booted from Tiger CD to run Repair Disk from Disk Utility
    2. rebooted from the boot hard drive to run Repair Disk Permissions from Disk Utility
    3. run through Disk Warrior
    4. created a test admin user and logged in as that user
    5. removed font cache files using terminal
    6. booted in safe mode, logged in as myself, and then rebooted normally
    None of these actions has had any effect. The computer is still operating normally, except for the characters that don't display correctly.
    I'm running 10.4.6 on a Titanium Powerbook 500 MHz with 512MB RAM. A few months ago, I replaced the internal hard drive with an 80GB Seagate.
    Tibook 500   Mac OS X (10.4.6)  

    Hi again, zoobieboots —
    I appreciate your initiating a new thread. Your post here helps to make the situation much clearer than in bmewolf's thread — particularly in terms of what you've already tried. Thanks again.
    A few initial thoughts —
        (a) As I was trying to suggest previously, you're apparently operating (after moving some files to an external drive) with ~6-10% (?) free disk space. Particularly given that you were working with large video files when this appeared, File fragmentation would be expected. While I haven't heard of this particular symptom resulting from fragmentation, that would be a concern to me — particularly since this immediately preceded the problematic behavior.
    I've read some good reports about iDefrag, but haven't used it myself. A demo version is apparently available for HDs < 100GB. But you'd presumably need to free significantly more space first (you haven't actually said whether 5GB or ?? is the total available now). Having never experienced severe fragmentation, I don't fully understand its consequences — but another participant may be able to explain this.
        <b>(b) You don't mention trying to troubleshoot potentially corrupt or incompatible fonts (or font caches), also as outlined in the other thread. As I suggested there, The X Lab's "undoing Font Book" FAQ is a useful resource in this.
        (c) Although I agree it may be an unsatisfying "solution," an Archive & Install did work for bmewolf in the case that you've indicated matches yours closely.
    I hope one of these suggestions is helpful. Please post back to discuss your progress.
    Regards,
    Dean

  • Glitches in address fill-ins with nicknames; default font problem; plus other glitches in Thunderbird 31.3.0 and 31.4.0; can I roll back to an earlier version?

    I am unhappy with the recent upgrade to Thunderbird 31.3.0 and now 31.4.0. My bottom line question is whether I can roll back to the previous version, which was working well for me.
    The problems I have encountered include:
    1. I used to be able to enter a single letter in many cases in the address field, and the autocomplete would fill in the entry that I always use with that single letter. That function has been lost, as has auto fill-in based on the nicknames I have entered in my Address Book. I see there is another thread on this problem (https://support.mozilla.org/en-US/questions/1036962), but no satisfactory answer so far. Entering a single letter now pulls up completely unrelated address entries that may not even have that letter as part of the name, address or nickname for that unrelated address. I have created new nicknames to try to adapt to this problem, but even these new nicknames no longer work with the 31.4.0 upgrade yesterday, forcing me to create yet more complex and hard-to-remember nicknames to pull up my frequent addressees. This is all very frustrating to me, as I depend on speed and ease when creating messages.
    2. Also, I used to be able to enter a single letter in the address field and then use the mouse to click on the "To:" symbol to the left of the next address line to change the next entry to "Cc:"; doing so would then cause the complete address to fill in in the "To:" address field, and make the next field ready for an entry. That no longer works. If I use that technique, the shortcut that I entered in the first field gets included along with the address (if I'm lucky enough to have the address itself selected now, given the problems I've mentioned above). I now have to press "Enter" in order to get the address in the first field to "take" correctly, and then have to click on the "To:" symbol for the next line as a separate action. Just another inconvenience with the new version.
    3. While still on the subject of addresses, personally I see no reason why the address and subject fields should now be colored blue by default rather than appearing as blank, white fields. I far prefer the old look. And I suspect that changing from the blue color to a nice, clean, white field takes time and computer resources that slow things down.
    4. The default font (Times in my case) no longer "takes" when replying to or forwarding messages. I've checked Tools/Options/Composition, and Times is still shown as my default font. However, when I start to type (in a reply with the original message quoted or in a forwarded message), the result is "Variable Width". In order to get Times, I need to highlight the block of text after typing, including the lead-in to the quoted message or the header of the forwarded message, and select "Times" when "(mixed)" shows up. This is a big pain; I often forget to do so and end up having to edit the Unsent Message (which I check before sending) as New and correct the font.
    5. A minor problem: I rely on the reminder to attach a message which shows up when an "attachment-related" word is entered in the body of the message. It has been a wonderful feature of Thunderbird that has prevented me on many occasions from sending off messages without the attachments. However, in the new versions, even if I have indeed added the attachment, a pop-up comes up on sending the message saying there has been no attachment and asking if I want to add one. It's easy enough to just click "No", but it's yet one more unnecessary and distracting step that this new version is requiring of the user.
    I'm really sad to see these various changes/glitches. I love Thunderbird and it bothers me deeply to find myself mired in so many new problems that slow down my work. I would be grateful for any suggestions and advice, and, particularly, for any information as whether I can roll back to the version prior to 31.3.0 that was working well for me.

    Thank you, Zenos. I tried rolling back to v31.2.0, since I had not encountered problems prior to December. However, that didn't help. So I followed your valuable suggestion to revert to v24.6; that seems to have done the trick.
    I would like to mark this problem as "Solved" -- the rollback seems to have worked. However, since my original post was a complex mix of things, before I do that, should I post the individual problem sets that I had noted (address fields/nicknames problems -- numbers 1-3; default font problem -- number 4; attachment reminder problem -- number 5) as separate issues which have not been solved?
    Do you know if these various issues are being worked on? I'm glad to have the temporary fix of rolling back to an earlier version, but I'd like to get back on the current update schedule at some point if and when these problems have been corrected.
    Thank you again!

  • PDF and Font Problems 10.6.8

    Ugh.
    MBP13 7,1 (mid 2010) 2.4g C2D 4G Ram
    I use Vectorworks 2011 to produce CAD drawings for customers and the plant. Recently I began having issues with my PDFs of my CAD not being fully distilled - various issues but primarily most dimensions not visible. I have read that PDF issues cropped up beginning with 10.6.7 and that certain PS fonts can be the issue. As well as outdated PDF readers used by my recipients. In a short-sighted fit of frustration I began monkeying with Font Book and Font Caches.
    My maladies are
    1. My PDFs are incomplete
    2. Received MS Office filed open "blank".  Now MS OFFICE 2011 no longer has common Fonts such as Arial and Times Nee Roman.
    Can I fix this or do I need to go back to 10.6.6 and reinstall Office?
    Thanks in advance.
    BTW this forum is surprising difficult to nav on an iPhone.

    MS Office font Problem solved in case anyone else stumbles upon this.
    http://hints.macworld.com/article.php?story=20110810001909244

  • Font problem in import and link

    I'm using RH8 and have a problem with a Word doc I linked.In a numbered list, NumberList2, the font reverts to Times New Roman from Arial 10pt. I attach a pic. I've tried reapplying the style, linking again and again and it's very stubborn. Is there a fix?

    Hi
    If this is a Linked Word Document, Try going to File>Project Settings >Next and Click on Edit for Word Document conversion Settings, and
    Select Edit and it would prompt you with all avauilable tags along with their Appearance, Example in Word and Robohelp.
    Check your tag in the List and Select "Source " in Drop Down of RoboHelp Style.
    And try to Select that and observe if the Appearnace or Style is imporved.
    Alternately, if you want you can import the Word Doccument and its assocaiated CSS file would be imported too and you can make changes directly to CSS and reapply them.
    Thanks,
    Anjaneai Srivastava

  • Leopard and font problems

    I have had my fonts default to courier when
    printing, just like the others who have posted notices in recent
    weeks. I wish I had never installed Leopard because I use FH
    daily-- I don't understand Illustrator even though I have it. I
    THINK in Freehand. I know I can change all my fonts to paths or
    print form the PDF preview mode BUT I don't want to have to do
    that. Anyway, I have another issue. I do a newsletter once a month
    and the editor sends me the articles cut and pasted into eMails. I
    have copied, cut and pasted the articles into FH beautifully up
    until Leopard. Now I get all those crazy weird characters.
    Apostrophes become "i"s, quotation marks become exclamation marks
    and spaces get crosses in them. I am ready to scream! I don't want
    to reinstall Panther but I will if I can't fix these issues.
    Anybody got any answers? is calling Adobe Customer Support a waste
    of time?

    For the garbled font problem you might try removing font
    cache files.
    FontNuke will do the job. You can download the latest version
    here.
    http://www.macupdate.com/info.php/id/21536
    Judy Arndt

  • Photoshop CS (1) and font problems (Mac OS X Leopard)

    A friend of mine has Photoshop CS (1) on his G5 (running on Leopard) and he says that he has font problems ONLY IN PHOTOSHOP. Bad fonts, missing fonts. Now, whether he uses a font management software or not is not important since that problem does not happen in other programs (like Illustrator). Are there issues between Photoshop CS and fonts.
    Thanks

    CS1 works on my friend's desktop which runs on Leopard but it doesn't seem to work on a Macbook which runs on Leopard. We've installed it and it's reported that installation is complete but upon opening the program, an error message states that certain files had not been installed and to reinstall the program to recover them. We've tried reinstalling multiple times but to no avail. Any explanation?

Maybe you are looking for