Needed: Programmer font with great Unicode coverage

Subject line says it all: I need a font that:
1) is excellent for source code files (especially Java, obviously)
2) has glyphs for most Unicode characters (specifically, the first 65,536 ones, that is the [Basic Multilingual Plane|http://en.wikipedia.org/wiki/Basic_Multilingual_Plane#Basic_Multilingual_Plane])
It would be most excellent if the font is truly free and available on all major platforms.
Here are the minimal requirements for a good programming font:
1) monospaced
2) extremely readable, even at small font sizes
3) all unique characters are readily distinguishable, especially in the Basic Latin subset usually used in source code. In particular:
     a) o, O, and 0 (with zero preferably having a slash thru it, or at least a dot inside it)
     b) l, 1, I, | (ells, ones, capital eyes and vertical bar; and | shouldn't look like ! with a signle white pixel but must be more distinguishable)
     c) clear punctuation characters, especially braces, parenthesis and brackets
4) proper sizing and alignment. In particular:
     a) operator symbols: * should not be raised relative to +/-; the same is true of ~; all these should align with =
     b) % should be cap height
     c) ", &, and ' should be straight, not angled or curved
     d) & must not become gray when antialiased at small ppm
     e) - must not be too short; en-dashes aren't typically used in programming
     f) bracketing chars have to align reasonably with both lower case and capitals.
     g) glyphs should not draw outside their metric bounds
     h) underscore must be at the baseline instead of hanging beneath, which most fonts wrongly choose and make words jarringly ugly
I did some web searching before doing this posting, and was frustrated by what I found.
There are many alleged programmer fonts
[http://keithdevens.com/wiki/ProgrammerFonts]
[http://www.advogato.org/article/867.html]
[http://www.lowing.org/fonts/]
[http://peterc.org/2008/61-liberation-mono-ultimate-coding-source-code-font.html]
[http://en.wikipedia.org/wiki/Consolas]
but all look like they have poor unicode coverage.
There are several unicode fonts
[http://en.wikipedia.org/wiki/Unicode_fonts#List_of_Unicode_fonts]
[http://www.math.utah.edu/~beebe/fonts/unicode.html#fonts]
but most are not monospaced or have poor coverage or are not free. For instance, these monospaced fonts lack Chinese unicode coverage:
[http://www.gnu.org/software/freefont/]
[http://www.evertype.com/emono/]
and these monospaced fonts (which appear to have even Chinese unicode coverage) are not free:
[http://en.wikipedia.org/wiki/Andale_Mono#Andale_Mono_WT]
[Ascender UniDuo|http://www.ascendercorp.com/fonts/multilingual/ascender-uni/ ]
[This posting|http://www.mail-archive.com/[email protected]/msg17127.html] alleges
"There is no free monospaced font covering Unicode"
Please prove him wrong by showing me a font that has what we all need!

[This stackoverflow.com question|http://stackoverflow.com/questions/4689/recommended-fonts-for-programming] has some pretty good points.
Regarding the Unicode coverage: I doubt that you'll find a good bitmap font there, as it's simply too much.
But then again, a reasonable font rendering framework will substitute the font for a similar one if some glyph can't be rendered in the chosen font (at least fontconfig/GTK+ on Linux does that).

Similar Messages

  • Need help with Tamil unicode fonts in Macbook OSX 10.6.7

    I am really desperate for some help figuring out my Tamil unicode font problem. With great difficulty I got all these fonts set up on my previous ibook G4. When that computer died in the fall I got this new Macbook, and had all my data brought from the old computer to the new one. Fonts were working great, as before. Well recently I had a hard drive failure on my new Macbook (OSX 10.6.7). I now have a new hard drive, and I brought over all my data from an external hard drive using Time Machine. Everything appeared to be working great....except the Tamil fonts. Previously I was using Murasu Anjal unicode font which allowed me to type in Tamil font and view Tamil on webpages, no problem. I understand that Snow Leopard has Tamil font support (including Anjal), so I am confused as to why they were working before but are not working now-especially because on my husband's Macbook Pro (OSX 10.6.5) you can see Tamil fonts on webpages and he has no special Tamil font installed whatsoever. For me the only thing visible is boxes. I am in the midst of finishing up a dissertation which is really dependent on being able to read and write in Tamil fonts. I am desperate to get this fixed but just cannot seem to figure it out. I would greatly appreciate any help or advice!!! Thanks so much!!!

    I've always used the Anjal keyboard with no problem...at least there was no problem before my MacBook hard drive had to be replaced, with a newer operating system, as I had mentioned previously. When I type in Pages, NeoOffice or TextEdit, the results are the same. Many of the characters show up, but vowel combinations--especially the "o" or "u" vowels--show up incorrectly or are unintelligible. Strangely, typing in Tamil font (using Anjal keyboard) in internet searches works perfectly, but ONLY in Firefox (?) NOT in the Safari browser. Prior to re-installing the InaiMathi font, which had seemingly vanished with the transfer of my data to the new hard drive, I was unable to type Tamil anywhere, not even in Firefox. Now it works only in Firefox. For example, if I were to type in Tamil in this window, it works fine: தமிழ் நாடு. 
    Being able to do Tamil searches in Firefox as I had previously is really a major boon for me, but of course I'd love to be able to produce Tamil text, especially as I am about to embark on a 6 month research jaunt to South Asia.
    Many thanks for all your help thus far, and for any further advice you might have.

  • Simple OTF fonts with maximum set of Unicode ranges

    I'm shopping around for fonts for use in a global corporate organization that creates printed packaging in numerous languages.  What I need is as small a set of fonts as possible that would include at least the following Unicode ranges (and be all Unicode-friendly, obviously):
    Latin (and supplements/extensions), Cyrillic (and extensions), Greek (and exts), CJK Unified Ideograph, Hiragana, Katakana, Hangul Jamo (Hangul Choseong & Hangul Jungseong), Tha, Hebrew and Arabic.  Devanagari would be nice, but isn't needed immediately.
    An Opentype version of Arial Unicode MS would solve this issue totally for the sans-serif side of things (we can't use Arial Unicode MS itself for,... stupid reasons), but we also need a serif'd font, anyway.
    I've tried digging around on the Adobe fonts site looking for precise, hard, quantitative information like this, but have come up empty handed.  Help?

    For better or worse, you won't find such information on Adobe's website since we don't offer any single font family that covers that full range or even a reasonable subset of it.
    Another consideration is that the concept of a serifed font is not universal to typography in all languages. Hebrew and Arabic, for example don't have fonts with serifs. Although Monotype's Times New Roman (ships with Windows) supports both the Hebrew and Arabic characters, those characters within the Times New Roman font are hardly serifed characters. They may look good with the truly-serifed Latin and Cyrillic characters in the font, but they themselves are not serifed.
    What you will need to do is find a selection of fonts covering the code pages you require which complement each other. I know I'd be very interested in your reporting back what your conclusions are and especially if you can find any on-line discussion of this issue with specific recommendations.
              - Dov

  • Using Sinhala Unicode Fonts with Indesign

    Hello,
    We are having trouble using  Sinhala Unicode Font with Indesign. We require this to covert content to the EPUB format.
    Siyabas - how to install Sinhala Unicode
    Do you know if there is a  Plug-in for the Sinhala Unicode Font? Or is there someone in the community working on it?
    Thank you.

    Hi, Thanks for your post. We want to convert to reflow able text, which can include illustrations (For Example - Children's Books).
    We tried FM Abbhaya Font as it is easy to read and using a traditional Sinhala keyboard input method.
    For Some reason we cannot get this input to be recognized by Adobe Indesign, to convert to an Epub format.
    We tried the open font on Windows, but it means selecting each character from a table. As a small publisher it is not practical.
    In fact the ideal path for us will be to convert our printed books to Epubs using OCR.
    Any thoughts on that? Thanks for your time.

  • Help needed with bit & unicode

    Hi,
    I have an issue with the following code when setting the unicode flag for a Z program.
    check usr02-uflag o lock.
    check usr02-uflag z lock.
    The field usr02-uflag has a data type of INT1and an output length of 3.
    The field lock is defined as "lock(1) type x value '40'."
    what do I need to do to satisfy unicode?
    Is it just a case of defining another variable as type X and copy usr02-uflag to it and then do the comparison. i.e.
    DATA: new_var(1) type x.
    new_var = usr02-uflag.
    check new_var o lock.
    check new_var z lock.
    pls help.
    C

    Hi Chris,
    I do niot see the issue:
    uflag has a data type of INT1 - No change in unicode
    lock is defined as "lock(1) type x value '40'  - No change in unicode
    Only fields of type C or STRING are affected by Unicode.
    It should work as it does now [Comparing Bit Sequences|http://help.sap.com/saphelp_webas620/helpdata/EN/fc/eb3523358411d1829f0000e829fbfe/content.htm].
    Am I wrong?
    Regards,
    Clemens

  • Do I need to load my fonts with every page of my website?

    Hi,
    In my website I use special fonts.
    To make sure that everyone, through every web-browser, sees my fonts correct I send my fonts with the website pages to the user´s browser.
    The question is: Do I need to do this for every page the user visits or only together with the first page?
    Because in my opinion the fonts will reside in the user´s browser cache, at least till the end of the session.
    I ask you this because I want to serve my pages as fast as possible.
    Thanks,
    Dirk Detmar (I am Dutch)
    Teresina, Piaui, Brazil

    Usually you would serve a single downloadable font file (e.g., myfont.woff) and Firefox will indeed cache that.
    To see whether Firefox is using a File from cache or is downloading it again and again, you can try using the Web Console (Ctrl+Shift+k), Network tab. The status code in the left column indicates how Firefox sourced the file. For example, 200 is a full retrieve, and 304 was re-used from cache after checking for a possible update. If a file you know was loaded into the page is not listed at all, then Firefox used the cached file without checking for an update (for example, if it was very fresh).
    (Example screen shot attached.)

  • Too many stroke lines & need engraving font.

    I've purchase a Roland GX24 vinyl cutter and using it to plot drawings (bought special pen). The problem is the areas that are solid black (especially the curves) are made of lines which are very close together, so when I go to plot they tear the paper and wear out the pen . I need to find a quick way of making this full of just little dots, I have created a live paint area of this group and trying to put little dots on them (anyone know a quick way of this as I choose 'effect', 'Pixelate', 'color halftone'. I think the dots are too big and will come across same problem with pen tearing, I want tiny dots spaced far away from each other or strokes far away from each other.
    This only solves half the problem as the original work is still below it and when I go to plot it will do both so still going to tear the paper; I know what you''re thinking; just remove the old one below; but it is made of tiny little curves and strokes so I can't just simply select it, what can I do here please?
    As if that's not the only problem , the text used is an outline and very small seeing as though they are blue-prints, the text blurs with the pen as the text is 'outlined', I need a quick way to turn this outlined text into single stroke text so it will be  clean enough to read.
    Any help is really appreciated, I have pain stakingly gone through and created my own symbols of text in a single stroke but this is no solution as have been here all day doing this and I have at least 20 of them to sort out. And there will be more comming.
    Below is a jpg of pic I am talking about, any input is greatly appreciated.
    http://http://picasaweb.google.com/lh/photo/8GXfUGyR38udiA-J3HkvHA?feat=directlink

    I've purchase a Roland GX24 vinyl cutter
    Dal,
    I'm taking you at your word and assuming the GX24 is simply a cutter/plotter, not a printer.
    The problem is the areas that are solid black...are made of lines which are very close together...they tear the paper and wear out the pen...I need...just little dots.
    With little dots, you might not shred the paper, but you're still going to then wear out the pen with all that pen-up, pen-down nonsense, just to draw a bunch of individual tiny dots. That is crazy use of a cutter/plotter.
    ...I choose 'effect', 'Pixelate', 'color halftone'...
    The Color Halftone Effect is a RASER effect. It generates a raster image (a color image consisting of pixels), not paths for your plotter to follow.
    Cutter/Plotters are driven by HPGL instructions that in simplifed terms go something like this:
    "Go to coordinates XY"
    "Pen/Knife down"
    "Go to coordinates XY"
    "Pen/Knife up"
    In other words, they are not printers; they are plotters. They scribe vector paths by using their stepper motors to move the paper and pen/knife carriage to cartesian coordinates. They don't see or paint pixels. They don't think of the page as one big bitmap to fill in with dots.
    There are cutter/plotters which incorporate raster printing (some of the best ones from Rowland). But they cost alot more than the GX24.
    In short, you are trying to make inappropriate use of your device. It really shouldn't be used to "color in" solid areas. If you must try to fill text paths, use a reasonably sparse VECTOR hatch or pattern fill.
    You can experiment with pattern fills, but be forewarned: The results will depend upon the translation capabilities of the software you are using to drive the device. Pattern fills in Illustrator don't really "stop" at the edges of the paths they fill. They are merely masked by the paths. So your plotter software would have to be smart enough to draw only the un-masked portions of the pattern paths. I'm not familiar with your particular device, or with Rowland's recent software, so you'll have to experiment if you want to use Pattern Fills.
    Generally speaking, what you want to send to a vinyl cutter (even one doubling as a pen plotter) is in principle very simple: Send it paths which describe EVERY mark/cut you want it to make and NOTHING more.
    One method in Illustrator with which you could quickly make marks to "scribble in" outlined text is the much overlooked Scribble Effect. Read about it in online Help. Set all variations and curviness to zero. Set stroke weight to zero (there is no weight to a cut), and control the density with the Spacing setting. Expand the results. That will generate zig-zag vector paths in shapes to "fill in" your large text. Being diagonal, it may not be exactly what you want, but it can yield a nice "architectural" sketch effect.
    ...the text used is an outline...I need a quick way to turn this outlined text into single stroke text...
    CAD programs are still (largely) stuck in the foregone decades of pen plotters. That's why they still use proprietary single-stroke text. (Many now support normal outline fonts, but many Engineering departments have never changed their habits, so they needlessly cause downstream users to devise workarounds.) Programs like Illustrator don't understand fonts that are not outlines. There are no open paths in the fonts that you use in Illustrator. Even text set at tiny sizes are outline paths. And there is no feature in Illustrator to reliably and neatly render text as open path centerlines. (Experiments with rasterizing text and auto-tracing it can yield legible results, but nothing I would call presentable results.)
    I have often thought it would not be too difficult to write a Javascript for Illustrator that would effectively replace ordinary type set in a monospaced font with Symbols containing glyphs drawn as open centerlines, "drafter" style. But I haven't got around to actually doing it yet. (The same script could be used for fun stuff, like automatically coding messages in colored nautical signal flags.)
    The general assumption, when using a pen plotter, is that the input is coming from a CAD program, and that small text will, therefore, already be open path centerlines.
    JET

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • [SOLVED] Lousy fonts with .chm viewer for Linux

    I installed the .chm file viewer HelpExplorer 3.0 in both Windows XP and Arch Linux (chm = compiled HTML help file).  In Windows XP, with default fonts installed, the fonts in text read with this viewer appear crisp, sharp and anti-aliased.  In Arch with KDE 3.5.7, on the other hand, the fonts appear fuzzy, grainy and don't seem to be anti-aliased, in contrast with their appearance in all other apps (except for a few such as Dillo) which render text good-looking, sharp and anti-aliased.
    HelpExplorer for Linux was provided as a tarball that included a precompiled 'helpexplorer' binary.  The program doesn't seem to allow for customizing font settings.
    The following fonts are installed in Arch (in /usr/share/fonts/):
    ttf-bitstream-vera-1.10-5 is installed by default
    gsfonts 8.11-4 is installed by default
    PostScript Type 1 fonts installed: Century Schoolbook, Nimbus, URW Bookman, URW Gothic, URW Palladio
    ttf-ms-fonts-2.0-1 (Microsoft TTF: Andale Mono, Arial, Comic, Courier, Georgia, Impact, Tahoma, Times New Roman, Trebuchet)
    font-bh-ttf-1.0.0-3 (Luxi BH)
    xorg-fonts-100dpi-1.0.1-1 (courier, helvetica, lucida, new century, times)
    The "Files" section of my xorg.conf looks as follows:
    Section "Files"
    RgbPath "/usr/share/X11/rgb"
    ModulePath "/usr/lib/xorg/modules"
    FontPath "/usr/share/fonts/misc:unscaled"
    FontPath "/usr/share/fonts/misc"
    FontPath "/usr/share/fonts/75dpi:unscaled"
    FontPath "/usr/share/fonts/75dpi"
    FontPath "/usr/share/fonts/100dpi:unscaled"
    FontPath "/usr/share/fonts/100dpi"
    FontPath "/usr/share/fonts/PEX"
    # Additional fonts: Locale, Gimp, TTF...
    FontPath "/usr/share/fonts/cyrillic"
    # FontPath "/usr/share/lib/X11/fonts/latin2/75dpi"
    # FontPath "/usr/share/lib/X11/fonts/latin2/100dpi"
    # True type and type1 fonts are also handled via xftlib, see /etc/X11/XftConfig!
    FontPath "/usr/share/fonts/Type1"
    FontPath "/usr/share/fonts/ttf/western"
    FontPath "/usr/share/fonts/ttf/decoratives"
    FontPath "/usr/share/fonts/truetype"
    FontPath "/usr/share/fonts/truetype/openoffice"
    FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera"
    FontPath "/usr/share/fonts/latex-ttf-fonts"
    FontPath "/usr/share/fonts/defoma/CID"
    FontPath "/usr/share/fonts/defoma/TrueType"
    EndSection
    I've attached a screenshot of some text displayed in the HelpExplorer reader in Arch (the font is Times New Roman): http://img216.imageshack.us/my.php?imag … ot1zh9.png
    [img=http://img216.imageshack.us/img216/8401/snapshot1zh9.th.png]
    What do I need to do to improve the font appearance in this program in Linux?
    Last edited by RobF (2007-10-02 18:06:46)

    I found a solution of sorts by installing and running the Windows version of HelpExplorer in Wine or Crossover.  There is still very little control over fonts but when I enlarge the default font (with 2x CTRL-+) I do get a nice-looking anti-aliased Times New Roman font, and this solution would be my preferred way of reading .chm files in Linux (i.e. better than KchmViewer or Xchm).
    Recap of the problem:
    1. The .chm viewer HelpExplorer Viewer 3.0 when installed in Windows XP renders fonts crisp and clear and anti-aliased.
    2. The Linux version of HelpExplorer Viewer 3.0 (delivered as a precompiled executable in a tarball) doesn't render fonts antialiased, regardless of what I tried, and they look grainy and unattractive.
    3. The Windows version of HelpExplorer Viewer 3.0 when installed and run in Arch in Wine or Crossover does render the default font they offer (looks like Times New Roman) fairly crisp and clear and anti-aliased, at least at the enlarged setting.
    Can someone explain to me what might be going on?  Why is it that the Linux version cannot render fonts anti-aliased when the Windows version running in the emulator in Linux can?  Is there something that I have to change in my fonts config, fonts location, symlinks or path to get the anti-aliased fonts to work in HelpExplorer in Linux?
    Robert

  • I need a calendar with multiple alert times for events; Advice please?

    1. I need to be able to set multiple alert times (e.g. 24 hours before, and 2 hours before)
    2. I need a good clear Month view, with text that can be enlarged (I am disabled)
    3. It needs to sync with standard iCloud calendar data (I use Week Calendar on my iPhone and iPad - great!)
    4. I do not want BusyCal, thanks (the developer point-blank refuses to fix the Alarm window to remember it's width, and refuses point-blank to wrap the alarm title text onto two line when it is long - although they do wrap text in the calendar itself, just not in the alarm window, go figure)

    Hey I have same problem. No PCMCIA No PCIe No USB converter are usefull
    I recommend you to use IBM Thinkpad Laptop with DockStation (adv Mini Dock 2504-10U)
    This Dock Sattion have real RS232 port

  • Coloring a Font with a RGB etc. without adding the color to the document swatches.

    Is there a way of coloring a font with a RGB, Lab or CMYK color without adding the color to the document swatches.
    The only way I know is to add a color to the swatches or use one that already exists.
    like
       app.selection[0].characters[0].fillColor=document.colors.add({colorValue: [255, 53, 160], space: ColorSpace.RGB});}
    This has the undesired effect of cluttering up the swatches when using a lot of colors.
    any ideas?

    Good Morning Uwe!
    After 3am by me 2am by you
    I had tried the link and it did download but I have cs5 cs6 and cc but not cs5.5 and all the scripts worked on them may because of the file conversion.
    So it looks like the following summary is all correct
    All documents new contain
    Swatches (Black, Registration, Paper and None) the index order will be the order that the swatches appear in the swatches panel
    And colors in an alphabetical index order
    named color "A" first "Z" last and then the unnamed colors.
    A such all new documents colors[-1] will be an unnamed color which we can duplicated to produce other unnamed colors taking note that the duplication must be process and not spot colors.
    So far so good, (not for long )
    Unnamed colors are not read only so if we make a positive effort to remove them we can do that.
    while (app.activeDocument.colors[-1].name == "") app.activeDocument.colors[-1].remove()
    We now won't have any unnamed swatches to duplicate and will have to resort to John's tagged text file method in 3 above.
    If there were no unnamed swatches and we try to duplicate colors[-1] and it was a color like "Yellow" then it seem's to crash indesign.
    Anyway the below method should always work (for regular non tint etc. type colors).
    // optimized for easy of use but not efficiency !!!
    var doc = app.documents.add();
    var p = doc.pages[0];
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "0mm", "30mm", "30mm"], fillColor: addUnnamedColor([0, 0,255])}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "30mm", "30mm", "60mm"], fillColor: addUnnamedColor([0, 255,0], 1666336578)}); // will be a RGB because of value
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "60mm", "30mm", "90mm"], fillColor: addUnnamedColor([65, 50, 102], ColorSpace.RGB)}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "90mm", "30mm", "120mm"], fillColor: addUnnamedColor([84, 90,40],"r")}); // will be a RGB
    p.textFrames.add({contents: "RGB", geometricBounds: ["0mm", "120mm", "30mm", "150mm"], fillColor: addUnnamedColor([232, 0, 128],1)}); // will be a RGB
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "0mm", "60mm", "30mm"], fillColor: addUnnamedColor([29.5, 67.5, -112])}); // will be a Lab because of -
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "30mm", "60mm", "60mm"], fillColor: addUnnamedColor([100, -128, 127], 1665941826)}); // will be a Lab because of value
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "60mm", "60mm", "90mm"], fillColor: addUnnamedColor([24.5, 16, -29], ColorSpace.LAB)}); // will be a Lab
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "90mm", "60mm", "120mm"], fillColor: addUnnamedColor([36.8, -9, 27],"l")}); // will be a Lab
    p.textFrames.add({contents: "Lab", geometricBounds: ["30mm", "120mm", "60mm", "150mm"], fillColor: addUnnamedColor([51, 78, 0], -1)}); // will be a Lab because of the 1
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "0mm", "90mm", "30mm"], fillColor: addUnnamedColor([82, 72, 0, 0])}); // will be a CMYK because there are 4 color values
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "30mm", "90mm", "60mm"], fillColor: addUnnamedColor([60, 0, 100, 0], 1129142603)}); // will be a CMYK because of value
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "60mm", "90mm", "90mm"], fillColor: addUnnamedColor([84, 90,40, 0], ColorSpace.CMYK)}); // will be a CMYK
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "90mm", "90mm", "120mm"], fillColor: addUnnamedColor([67, 53, 97.6, 21.7], "c")}); // will be a CMYK
    p.textFrames.add({contents: "CMYK", geometricBounds: ["60mm", "120mm", "90mm", "150mm"], fillColor: addUnnamedColor([0, 100, 0, 0], 0)}); // will be a CMYK
    function addUnnamedColor (cValue, space, docToAddColor) {
        docToAddColor = app.documents.length && (docToAddColor || (app.properties.activeDocument && app.activeDocument) || app.documents[0]);
        if (!docToAddColor) return;
        var lastColor = docToAddColor.colors[-1];
        if (!cValue) cValue = [0,0,0,0];
        if (space == 1129142603 || cValue && cValue.length == 4) space = ColorSpace.CMYK;
        else if ((space && space < 0) ||  space && space == 1665941826 || (space && /L|-/i.test(space.toString())) || (cValue && /-/.test(cValue ))) space = ColorSpace.LAB;
        else if ((space && space > 0) || space && space == 1666336578 || (space && /R/i.test(space.toString())) || (cValue && cValue.length == 3)) space = ColorSpace.RGB;
        else space = ColorSpace.CMYK;
        app.doScript (
            var newUnnamedColor = (lastColor.name == "") ? lastColor.duplicate() : taggedColor();
            newUnnamedColor.properties = {space: space, colorValue: cValue};
            ScriptLanguage.javascript,
            undefined,
            UndoModes.FAST_ENTIRE_SCRIPT
         function taggedColor() { // need to use this if no unnamed exists
                 var tagString = "<ASCII-" + ($.os[0] == "M" ? "MAC>\r " : "WIN>\r ") + "<cColor:COLOR\:CMYK\:Process\:0.1\,0.95\,0.3\,0.0><cColor:>"; // would make more sense to apply the correct value in the tagged text file but I can't be bothered !
                 var tempFile = new File (Folder (Folder.temp) + "/ " + (new Date).getTime() + ".txt");
                 tempFile.open('w');
                 tempFile.write(tagString);
                 tempFile.close();
                 var tempFrame = docToAddColor.pages[-1].textFrames.add();
                 $.sleep(250);
                 tempFrame.place(tempFile);
                 tempFrame.remove();
                 tempFile.remove();
             return docToAddColor.colors[-1];
        return newUnnamedColor;
    Shall apply the function to delete and replace swatch on the other thread at a more sane time
    Regards
    Trevor

  • Do i need air extreme with time capsule?

    Do I need Airport Extreme with Time Capsule?

    A Time Capsule is an AirPort Extreme...with a built in hard drive.
    If you have a Time Capsule, you would not need an AirPort Extreme unless you wanted to install the Extreme at another location in your home and have it "extend" the Time Capsule network to provide more wireless signal coverage.

  • Need some help with threads...

    Hello all,
    I am working on a project at work, and I am not the best programmer in the world. I have been trying to get my head around this for a couple of days and just cannot get it to work.
    I am writing an instrumentation control program that will have three threads. One is the GUI, one will receive control information and set up the hardware, and one will check the hardware status and report it to the GUI periodically. I plan on using the invokeLater() method to communicate the status to the GUI and change the status display in the GUI. Communication from the GUI to the controller thread and from the status thread to the controller thread I had planned on being piped input/output stream as appropriate. I have a control class and a status class that need to be communicated over these piped streams. In some trial code I have been unable to wrap the piped input/output streams with object input/output streams. I really need some help with this. Here is the main thread code:
    package playingwiththreads1;
    import java.io.*;*
    *public class PlayingWithThreads1 {*
    public static void main(String[] args) {*
    * PipedOutputStream outputPipe = new PipedOutputStream();*
    * ObjectOutputStream oos = null;*
    * ReceiverThread rt = new ReceiverThread(outputPipe);*
    // Start the thread -- First try*
    * Thread t = new Thread(rt);*
    t.start();*
    // Wrap the output pipe with an ObjectOutputStream*
    try*
    oos = new ObjectOutputStream(outputPipe);*
    catch (IOException e)*
    System.out.println(e);*
    // Start the thread -- Second try*
    //Thread t = new Thread(rt);*
    //t.start();*
    /** Send an object over the pipe. In reality this object will be a
    class that contains control or status information */
    try
    if (!oos.equals(null))
    oos.writeObject(new String ("Test"));
    catch (IOException e)
    try
    Thread.sleep(5000);
    catch (InterruptedException e)
    I read somewhere that it matters where you start the thread relative to where you wrap piped streams with the object streams. So, I tried the two places I felt were obvious to start the thread. These are noted in the comments. Here is the code for the thread.
    package playingwiththreads1;
    import java.io.*;
    public class ReceiverThread implements Runnable {
    private PipedInputStream inputPipe = new PipedInputStream();
    private ObjectInputStream inputObject;
    ReceiverThread (PipedOutputStream outputPipe)
    System.out.println("Thread initialization - start");
    try
    inputPipe.connect(outputPipe);
    inputObject = new ObjectInputStream(inputPipe);
    catch (IOException e)
    System.out.println(e);
    System.out.println("Thread initialization - complete");
    public void run()
    System.out.println("Thread started");
    try
    if (inputObject.available() > 0)
    System.out.println(inputObject.read());
    catch (IOException e)
    System.out.println(e);
    Through testing I have determined that no matter where I start the thread, the thread never gets past the "inputObject = new ObjectInputStream(inputPipe);" assignment.
    Could someone please help me with this? There are other ways for me to write this program, but this is the one that I would like to make work.
    Many thanks in advance,
    Rob Hix
    Edited by: RobertHix on Oct 6, 2009 3:54 AM

    Thanks for the help, but that did not work. I tried flushing the ObjectOutputStream and it is still hanging when initializing the thread.
    Here is a better look at the code since I was helped to figure out how to insert it:
    The main method:
    package playingwiththreads1;
    import java.io.*;
    public class PlayingWithThreads1 {
        public static void main(String[] args) {
            PipedOutputStream outputPipe = new PipedOutputStream();
            ObjectOutputStream oos = null;
            ReceiverThread rt = new ReceiverThread(outputPipe);
            // Start the thread -- First try
            //Thread t = new Thread(rt);
            //t.start();
            // Wrap the output pipe with an ObjectOutputStream
            try
                oos = new ObjectOutputStream(outputPipe);
                oos.flush();
            catch (IOException e)
                System.out.println(e);
            // Start the thread -- Second try
            Thread t = new Thread(rt);
            t.start();
            /* Send an object over the pipe.  In reality this object will be a
             * class that contains control or status information */
            try
                if (!oos.equals(null))
                    oos.writeObject(new String ("Test"));
                    oos.flush();
            catch (IOException e)
                System.out.pringln(e);
            try
                Thread.sleep(5000);
            catch (InterruptedException e)
    }The thread code:
    package playingwiththreads1;
    import java.io.*;
    public class ReceiverThread implements Runnable {
        private PipedInputStream inputPipe = new PipedInputStream();
        private ObjectInputStream inputObject;
        ReceiverThread (PipedOutputStream outputPipe)
            System.out.println("Thread initialization - start");
            try
                inputPipe.connect(outputPipe);
                inputObject = new ObjectInputStream(inputPipe);
            catch (IOException e)
                System.out.println(e);
            System.out.println("Thread initialization - complete");
        public void run()
            System.out.println("Thread started");
            try
                if (inputObject.available() > 0)
                    System.out.println(inputObject.read());
            catch (IOException e)
                System.out.println(e);
    }Does anyone else have and ideas?

  • Need some help with guitar setup...

    jeez, never thought i'd be asking a question like this after playing for like 20 years, but i need some help with a guitar setup for mac. i'm gonna list out a lot of crap here that prolly doesn't affect anything at all, but here goes.
    Imac 17inch G4 - latest updated OS X... 10.4, or 5, or whatever. garageband 3.0
    digitech gnx-3
    alesis sr-16
    sure mic's
    yamaha e203 keyboard
    here's the setup:
    yamaha is on its own on a usb uno midi interface, sure's connected to gnx's xlr port, alesis connected to gnx's jam-a-long input, '87 kramer vanguard connected to gnx's guitar input. currently running headphones out on gnx to line in on mac.
    here's the problem:
    everything works beautifully, but my guitar sounds like crap. if i plug headphones into the gnx, it sounds beautiful. that makes me think its some kind of level issue between the gnx's output, and the mac's input, but nothing seems to fix it.
    by sounding like crap, i mean way too much bass. sound is muddy, blurry, not crisp... aka crap. i've tried altering both output and input on mac and gnx, and i cant get a combination that works. the gnx has a s/pdif out, can the mac accept that as input? might that help? short of running the gnx to my marshal half stack and mic'ing that, anyone have any suggestions, or use a similar setup?
    any help would be greatly appreciated!

    anyone? ... any suggestions? I think it might be an issue with the gnx pre-amping the signal as it goes out, and then the mac amping it on the way in, giving me a buttload more signal than i need, but since i cant find a happy level, i'm not really sure. i really dont want to resort to mic'ing my marshall... even with the volume almost off, my jcm900 is WAY too loud for apartment use. its not like i really NEED the guitar to sound perfect, i only use garageband to sketch out ideas for songs between myself and bandmates, but its really annoying to not have my customary crisp distortion. my bass player keeps telling me to use the built in amps, but, not to dis a practically free program, but the built in amps blow, at least after 10 years of marshall tube amplification they do. if anyone has any suggestions that might be helpfull on how i might resolve this, i would be your best friend for life and go to all your birthday parties

  • How to replace missing fonts with a specific font (and not a suggested font)

    Hello all!
    Looking to replace missing fonts within my document - but the drop-down selection only gives a couple of suggestions, none of which are the font I want to use.
    How can I replace the fonts with a font of my choosing?
    I've attached an image to give more clarity - notice how the drop-down only gives the option to select between 3 fonts without an option to select your own font - many thanks!

    Same problem! The only solution I found is to prepare a textbox in a new file with all the font you need. Copy and past in the file you need to change font. Go to type/risolve missing font. Will open the same window in the pic you pasted. Then you find the font in the dropdown menu. I have to change all the Helvetica family ...it's a long go. If some one could save me. Hope to be usefull to your problem.

Maybe you are looking for

  • Wipe BBID (lost password / recovery answer Android/iPhone)

    Does anyone know how I can wipe my BBID using windows, I used to have a Blackberry years ago, I've since forgotten my BBID password and I must have typed my security answer wrong back then, I am now using a iPhone and have no ability to wipe my accou

  • JDBC driver configuration for sybase in XI 3.0

    my client vendor upgraded sybase database version 8 to 11, then after we are facing connectivity problem. i deployed new JDBC for sybase ver 6.05..  jconn3.jar i am not sure this is the right version to deploy for sybase 11... still have the connecti

  • Mini stopped recognizing the home network

    I have an intel mini 1.42GHz with 1G memory, a G4 Quicksilver, 733MHz, and a 1 GHz G4 iBook. The mini and the quicksilver are on a wired network and the ibook is on an airport network, and I also sometimes use an ethernet cable connection with it as

  • Call web service using Java code

    Hi all, Sorry if this question sounds stupid. I am new to web services. I am having a web service written in oracle, using soap-api. I want to call this web service in Java application, parse the result and save it in the database. Can anyone please

  • SRM 7.0 - Account Assignment

    Hi, Do any one know how to add the custom fields in the Account assignment section of the shopping cart in SRM 7.0