Dwm special characters with tty font?

Currently, I have dwm configured like so:
http://i.imgur.com/JsTurIO.png
But as you can see, in the upper left corner, my tag names aren't displaying properly, neither is the title of the directory I'm in (†††). I've tried the dwm-pango patch, but then I'm unable to get it to use the same font it uses currently for the menubar, which I would like it to do. I also have no idea what the name of the font it's currently using is.
So, two questions: is there a way I can get special characters to show up with dwm while maintaining the same font, and if not, how can I switch the font in my terminal windows so that I can match the statusbar and my other windows? I suspect the answer to the second is just some line in .Xresources which I can probably figure out unless there's something more complicated, but I'd rather just use the same font I'm currently using, but fix the special characters problem.
-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
Last edited by davidjosepha (2014-03-04 22:32:51)

Epictek wrote:
davidjosepha wrote:
I'm getting an error when I try to build...
/usr/include/X11/Xft/Xft.h:39:22: fatal error: ft2build.h: No such file or directory
However, I've made sure freetype2 is installed properly and that ft2build.h is where it's supposed to be. Why might this be happening?
Edit: Managed to figure this out. But it's still not using a console font in dwm. How can I get it to use a font from /usr/share/kbd/consolefonts/?
I'm trying to also get this to work but get the same error as you did.
How did you do to fix it?
You need to add a couple lines to config.mk in the source directory.
@OP: It's not entirely clear what your goal is. The XFT patch allows for unicode .ttf fonts, and affects the entire statusbar; the current Pango patch allows for fonts in languages with unique character sets (Cyrillic, CJK, Thai, etc.) but some Pango features only affect the right-hand statusline. If you're trying to add, say, symbols or icons to your tag names for a little eye-candy, you can use the XFT patch and use unicode characters. If you're trying to use a font for your native language, Pango would be the better choice. From what I can tell (C often doesn't come easily to me), it seems each patch replaces console font support entirely for its respective alternative. I'm not aware of any solution that could allow you to use a console font in DWM while displaying special characters; you'll probably have to pick whichever patch you feel is less invasive and detrimental.
EDIT: If you choose to apply a patch and then change the fonts in your terminal emulator, the latter depends on which terminal you're using. The wiki has articles on Xterm and Urxvt; other terminals will either have a configuration menu or file you can alter, probably mentioned in the man page.
Last edited by ANOKNUSA (2014-04-12 16:04:44)

Similar Messages

  • I have created a book in ibooks author with a custom font when previewing on the ipad the special characters within the font do not appear?

    I have created a book in ibooks author with a custom font when previewing on the ipad the special characters within the font do not appear?

    'custom' font sounds like you may be working with a font that is unsupported on iOS/iPad.
    Supported fonts are found in the pull-down font menu in the toolbar. Authors are obligated (mostly) to stick to that list.

  • Textfield which accepts multilingual characters with embedded fonts

    Hi all,
    I have a textfield where I can paste text from different languages with device fonts. Now, I want to input multi-ligual text with embedded fonts.
    I have embedded set of fonts, where I can input only english alphabets but not other languages.
    Is there a way to input any language characters with embedded fonts?
    Thank you.

    Thanks for your reply.
    I have embedded font as follows,
    [Embed(source="myfont.ttf", fontName='myfont', mimeType='application/x-font',embedAsCFF="false")]
    With this, I was able to apply this font for english.
    I have tried to paste " मैं कौन हूँ? " on a textfield. But I have not shown मैं कौन हूँ? text.
    And setting text programmatically did not work at all as
    textField.text = "मैं कौन हूँ?";
    If I do this with device fonts, every thing work fine but not with embedded fonts.
    Is there any thing wrong with my code while embedding font?

  • Keystroke combinations needed for special characters in specific fonts?

    How do you see the required keystrokes to enter special characters? Very frustrating!!! Using Pages to help my wife create a brochure. We wanted to use one of the symbols available in the font "Type Embellishments One LET" (which I assume installed with Pages). In Font Book we could see all the possible characters BUT NOT HOW TO TYPE THEM. We ended up typing scores of keys and keystroke combinations to finally see the one we wanted, then use cut and paste. There must be a better way but we (along with some Mac Support people at my work) cannot find it.
    Is there a way to do this without buying a program like PopChar. Seems like this should be fundamental to using a Mac out of the box.
    Thank you for any suggestions.

    You can use "Keyboard Viewer" to see what characters are created with various keystrokes. Open the International Preference Pane, click on the Input Menu tab & click the box next to Keyboard Viewer. This will make this available in your menu bar by clicking the flag icon. Select "Show Keyboard Viewer" from the flag menu & you will see a layout of the keyboard. You can then hold down the shift key, the option key OR shift + option to see all the possibilities. The highlighted ones are the accents than you can apply to letters. To get "é" type option-e (nothing will appear), then type e. This accent could be place over most letters. You can change the font in the drop-down menu. Not all fonts will have all characters. Keyboard Viewer places the typing directly into the top, open document.

  • Problems with special characters with XML/PDF printing

    Hi,
    Our setup:
    Apex Listener 2.0.5
    Oracle DB 11G
    Weblogic
    Apex 4.2.2
    Various recent major browsers
    We used this blog post so we could do some PDF printing with APEX Listener:
    http://marcsewtz.blogspot.be/2013/04/pdf-printing-with-oracle-application.html
    The problem is special characters. For example the "&" sign comes out as "%26amp;" when we export an XML.
    Could anyone provide some insights of what we can do to fix this?
    Regards,
    Joni

    This is a known bug.
    https://support.oracle.com/epmos/faces/BugDisplay?_afrLoop=957905848396285&id=18282188&_afrWindowMode=0&_adf.ctrl-state=168vq5zhn3_233
    The bug 18282188 has been fixed in Apex 4.2.5 version.
    Upgrade the Apex version to 4.2.5 when it is available.

  • How do you insert special characters with imovie 08?

    How do you insert special characters into a project
    with imovie 08?

    Don't think that would work. Since my "system date" is already set at 2007. I have 2 imports, one has the year as 2048, and the other at 2016!! I don't know where they are getting these dates from, but they are not the system date.
    Were the files imported directly from a camcorder or from files already on your hard drive? In the first case the year may have been taken from the time "stamp" recorded when the footage was shot (which may or may not have been correctly set by the user). On the other hand, files imported from the hard drive seem to be keyed to the date the imported file is written to the "Events" folder which, of course, reflects the current system time/date setting. That's why I said you had to then import (re-import) the files from a hard drive source -- i.e., to ensure the DTG would be re-written.

  • ### Problem in retrieving special characters with Oracle 9i JDBC drivers

    hi,
    We are having some problem with retrieving special characters like '�' from the database.
    Our application is using JDK1.3.1 with Oracle 9i at the back end(Version: 9.0.1.0.0). We are using oracle 9i thin drivers (classes12.zip) for database interaction.
    To relieve the data from database we are using PreparedStatement in two ways
    1. Creating a preparedstatement from connection object without any parameters and then retrieve the
    data using it. This gives the results in correct format i.e. special characters like '�'
    2. Create the preparedstatement by passing the following parameters.
    i) ResultSet.TYPE_SCROLL_INSENSITIVE
    ii) ResultSet.CONCUR_READ_ONLY
    In this case we are not able to retrieve the special character like '�' correctly. Instead the ResultSet
    returns 'h'
    I think this is the problem with Oracle drivers. Does anyone have any information about the mentioned problem.
    rgds

    I don't know exactly (because I am using JDK 1.4 with ojdbc14.jar where these problems seem to be rare...) but you may consider this:
    1. Add nls_charset12.zip to your classpath to ensure that the encoders are present (may or may not help)
    2. Swith to JDK 1.4, and do this:
    Instead of String s = getString(column)
    use
    byte[] bytes = getBytes(column);
    ByteBuffer bb = ByteBuffer.wrap(bytes); // in package java.nio
    CharBuffer cb = Charset.forname("ISO-8859-x").decode(bb);
    String s = cb.toString();
    The latter method allows you to perform the encoding/decoding manually.
    3. Change the character encoding in the database to unicode upon database setup.
    4. Try playing with NLS parameters (alter session ...)

  • Special characters with English aluminum keyboard

    well, considering there's probably no Spanish ISO version of the Apple Keyboard (aluminum) available in the USA, does the English version allow the typing of special characters like ñ, á and ç?

    Yes. Press Option+N followed by N, Option+E followed by A, and Option+C respectively to produce those characters. For other characters, open the International pane of System Preferences, turn on the Keyboard Viewer as well as the input menu, and see the keystrokes to produce them.
    (31652)

  • CS4 can't input special characters (|\#) with alt+shift

    Very strange,
    I can input all characters with alt+shift except for:
    * alt+shift+l normally outputs: |
    * alt+shift+/ normally outputs: \
    * alt+shift+£ normally outputs: #
    I have an EN_US version, and I work with an azerty-keyboard
    This was an issue with cs3 too
    anybody has a clue why I can't input these characters?
    thanks

    No idea, but maybe due to security reasons, because "&&" is a logical AND, and "||" is a logical OR, and "//" could start a comment, through input boxes these could actually alter the internal program and one maybe able to bypass security codes or do other imaginative things. In fact similar things have been widely used in PHP language by hackers, one of their methods is known as "xss" or cross site scripting through which a badly regulated/filtered/controlled user input can be exploited.

  • How to replace special characters with html code characters automatically?

    A colleague and I work on these html pages. They eventually end up as emails, but we have the cold fusion server to pre process them. One thing we are trying to do is eliminate problems caused by unencoded copyright, trademark and smart quote symbols.
    How could I create an array of find / replace commands in the header so it processes the HTML with correct character codes.
    I"m not cold fusion aware, so any kind of starter info would be great. Eventually I might add more replacements to the array.
    As an example TM (font character) would process to ™ and a smart quote or apostrophe would process to a straight one. an en dash character would become –
    Because we copy paste from places, this often happens and it seems like cold fusion could solve the problem quickly and repeatedly all at once.
    thanks for any help
    -smick

    CF has a built in HTMLEditFormat function for handling <  &  > characters.  For handling trademark and smart quote characters you might try searching for a user defined function at http://cflib.org or writing a user defined function yourself that will handle the specific characters needed in your application.

  • Insert special characters with laptop keyboard

    In Linux Thunderbird is there a keyboard shortcut alternative to insert>Characters and symbols ?
    I have tried various combinations of fn-alt-shift ctrl but none seem to work.

    Assuming English US version, Alt+I followed by Alt+C.
    If you look in the menus (the ones from the full menu bar, not always the ones from the ≡ application button), they show a Ctrl+''x'' for the keyboard shortcut. Also, each menu item has a bar underneath its accessibility key, which can be used along with the Alt key to navigate them without the mouse.

  • Special characters with ANT

    Hi All,
    I am creating ANT script that suppose to run under the Windows XP.
    I am trying to create number of properties in my config.ini file with propertyfile tag .
    I have code that suppose to add directory name to the config.ini file :
    <propertyfile name="${dir.main}\config.ini>
    <entry key="main.directory.name" value="f:\mydir />
    </propertyfile>
    but what I actually receiving inside my config.ini file after the running of my ANT script is something like that
    main.directory.name=f\:\\mydir
    I will use this property with java on XP machine afterwords ,
    and defenetly windows woudn know what to do with that additional slash before the colon.
    thank you for your help.

    The format of "properties" files is not 100% compatible with the format of ".INI" files.
    They have no "[section]"s, some characters are escaped, you can use ":" or "tab" or "space" as a separator instead of "=", and a long value can be split through several lines using a backslash at the end of the lines, as this:
    key : value value value\
    value value value\
    value value too long\
    to be put in a single lineTry to express such thing using an ".INI" file...
    If you must write a ".INI" file, list the properties manually, in the correct format, instead of simply expecting that the formats would be perfectly read by both systems.

  • Weird dots, lines, special characters with triggering uevents.

    I'm trying to install arch on my uefi laptop and I'm going into UEFI Shell x86_64 v2, letting it load then exiting and starting up the Arch Linux archiso x86_64 UEFI CD and it's just displaying a ton of random dots, lines, underscores, etc.  I've tried selecting the boot option and hitting tab to see if I can't add a boot option, but that doesn't even let me append options to it.  Here's a picture of what's going on since I don't even know what this is called to begin searching for answers on it.
    http://i50.tinypic.com/24njtwl.jpg

    Ed
    Can you tell us whether your async line configuration includes the command no exec?
    I have seen situations where async lines used for reverse telnet/terminal server and configured with the default setting of exec will send extra/garbage characters to the console of the controlled device.
    HTH
    Rick

  • How do I type in code for special characters within a font?

    Hi, I'm using the font Aloisan New and am trying to access a character which is listed as having the number 146 associated with it. Someone told me I need to press alt-0146 to make the character I need appear, but when I do, it only produces those same numbers and doesn't seem to accept them as a single code. Can someone please guide me key by key as to what I should press and in combination with what? It would be much appreciated. Thanks

    Someone told me I need
    to press alt-0146 to make the character
    That's garbage.
    That's an extreme response. Alt-0146 It isn't garbage, that's how it works on most computers (Windows). In most cases that would have been a perfectly legitimate answer. Including on a Mac booted into Windows via Boot Camp or through virtualization. It is also perfectly understandable how they would have given such advice.
    It is simpler on the Mac, though, using the Option key and the Character palette.

  • Replacing Special Characters With Its Actual Value

    Hi All,
    Does anyone has any idea how to replace an extended character (ASCII value ranging from 128 to 255) to its actual character set in SQL/PLSQL?
    For example: “½” needs to be replaced to “1/2”
    “¼” needs to be replaced to “1/4”
    Ultimately if the value is “California 71 ½ ” then the result should be “California 71 1/2”.
    Thanks for your time!
    Regards,

    user10088255 wrote:
    Hi All,
    Does anyone has any idea how to replace an extended character (ASCII value ranging from 128 to 255) to its actual character set in SQL/PLSQL?You can also use POSIX Character Equivalence Class to match characters having the same base character as the character you specify.
    --Extended ASCII (ISO Latin-1):
    á     #225
    â     #226
    ã     #227
    ä     #228
    å     #229
    æ       #230
    SQL> select regexp_replace('á,â,ã,ä,å,æ','[[=a=]]','a') str from dual;
    STR
    a,a,a,a,a,a

Maybe you are looking for

  • How to create tab canvas from content

    Hi, I have created a form which has one content canvas and multiple stacked canvases. The content canvas displays the first page and then we hv to click on next to go to the next stacked canvas and so on. I want to try making it in tabs (tab canvas)

  • Java Web Services

    Hi I have using jdevleper 10.1.2. I have generated a WebService for my Login Java class. The Web Service has 2 method login and register. I have converted the Java into a Web Service. I have created stub and I am able to call these Web Service method

  • Command prompt window problem

    Hi, Can anyone tell me how to open a command prompt window from a Java GUI application? The application is started as a excutable JAR file and there is no command prompt window showing up in the beginning. Thanks a lot Wenly

  • Had to reload windows nt 4.0 how to get oracle 8.05 running again

    I had to reload win nt 4.0. How do I get oracle running again?

  • Anyone else have their movies deleted from their computer?

    Somewhere between now and last week, my computer had suddenly deleted movies I downloaded/transfered to my iTunes. Most of the movies were Digital Copies from purchased Blu-Rays. I searched my entire computer looking for each individual movie, but ca