GithubHelp home page GithubHelp logo

stark / siji Goto Github PK

View Code? Open in Web Editor NEW
799.0 13.0 36.0 62 KB

An iconic bitmap font based on Stlarch with additional glyphs.

Home Page: https://git.io/siji

License: GNU General Public License v2.0

Shell 100.00%

siji's Introduction

Siji

Siji is an iconic bitmap font based on the Stlarch font with additional glyphs.

It inherits additional glyphs from Sm4tik xbm icon pack, Lokaltog Symbols font, xbm-icon font, Uushi font, FontAwesome, and Tewi font with personal additions.

Siji is built on top of Stlarch, so your existing stlarch unicode values will just work.

Siji is a Work In Progress, so more glyphs will be added over the time.

Siji

What's the difference between Stlarch and Siji ?

  • Siji comes with 215 new glyphs, selectively ported from other fonts and xbm icons with personal additions.
  • Increased letter spacing.
  • Properly centered glyphs.

Installation

Arch Linux

PKGBUILD by brandon99

CRUX

CRUX port by z3bra

Others

Clone this repo and cd into the siji directory:

git clone https://github.com/stark/siji && cd siji

Then run the installer script with ./install.sh.

By default Siji will be installed in your $HOME/.fonts directory, it will be created if the directory is non-existent.

If you wish to install Siji in another directory then run the install.sh script with the -d flag and specify the font directory as an argument.

Example:

./install.sh -d ~/.fonts

How to get the glyph codes ?

Install xfd:

Arch Linux

sudo pacman -S xorg-xfd

Debian

sudo apt-get install x11-utils

Fedora

sudo dnf install xorg-x11-apps

After installing xfd run the view.sh script:

./view.sh

Using Siji with other programs:

As long as the program allows to set a fallback font, Siji will work.

Examples of using Siji with some programs:

Dwm

static const char font[] = "-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1" ","  /* For Iconic Glyphs */
                           "-*-tamsyn-medium-r-normal-*-12-*-*-*-*-*-*-1";                   /* For Normal Text */

Dmenu

dmenu -fn '-*-tamsyn-medium-r-normal-*-12-*-*-*-*-*-*-1','-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1'

Lemonbar

lemonbar -p -f '-*-tamsyn-medium-r-normal-*-12-*-*-*-*-*-*-1' -f '-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1'

TODO

  • More Glyphs!
  • Adding glyphs of different sizes.
  • Improving glyph alignment.
  • Creating small and large version of siji.

Credits

A Big Thanks to the following Authors for their spectacular work which made Siji possible:

Sm4tik for sm4tik xbm icon pack

Stlarch for stlarch font

Sunaku for sm4tik font

Lokaltog for symbols font

w0ng for xbm icon font

Dave Gandy for FontAwesome

Lucy for Tewi font

Phallus for Lemon and Uushi font

License

Siji is licensed under GPLv2.

See LICENSE file for copyright details.

siji's People

Contributors

cloudier avatar jaystrictor avatar stark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

siji's Issues

Add view single command to readme

if you would add this command to the readme (next to view), it would allow people who installed siji to pick an icon without needing to download the entire view.sh:

xfd -rows '19' -columns '34' -fn '-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1'

i3bar space broken

With i3bar, [0020] shows up after every icon I use. It seems like some icon fonts supply a space character so this doesn't happen. Would something like this be a possibility for siji? Or is there another workaround?

Release tag

Hi, could you please tag a release? Helps when creating a package. Will create one for Void Linux.

Use of Bluetooth figure mark

I'm not an expert in licenses hence I politely ask here if we are granted to use the Bluetooth symbol ("figure mark") available in this font. In the official document I read:

Only Members of Bluetooth SIG, Inc (“the Bluetooth SIG”) are licensed to use the Bluetooth word mark, figure mark, and combination mark [...]

and

Recreating, redrawing, or otherwise reformatting the figure mark is prohibited.

I'm pretty sure is it allowed to use it, otherwise it would be already dropped from the library, but to be 100% I'm asking here a confirmation.

Improper Glyphs

I'm trying to use the glyphs but besides my polybar config where I specify the font, the fonts show up as something else entirely when I use them in scripts. For example, in my time script, the circle clock shows up as a curly a. How can I fix this?

Wrong unicode characters displayed

Hey @stark I'm having an odd issue that I can't seem to fix on my own.
I hope this isn't some basic thing I've missed.

The issue is that when I try to use the siji font in Ubuntu, some other character will get displayed.
Let me give an example :
screen

For some reason it prints a star instead of the no-wifi glyph in the siji font,
and I've not managed to find out why that is.
Any help would be very appreciated.

View Issue

Wuncon Siji is installed properly but now I get this error whenever I run ./view.sh.

Warning: Cannot convert string "Iosevka Term 8" to type FontStruct                                                                              
Warning: Cannot convert string "-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1" to type FontStruct
xfd:  no font to display

Illegal knock-off repository

Just a heads up, it looks like somebody has copied this repo in a way that is not allowed by the GPL including slapping a different license on the copy. Might want to look into what you can do...

Not in fontconfig but in xlsfonts

I downloaded from aur makepkg, makepkg -i => the siji.pcf is in the /usr/share/fonts/misc

xlsfonts | grep siji
-wuncon-siji-medium-r-normal--0-0-75-75-c-0-iso10646-1
-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1

/usr/share/siji/view.sh works as expected BUT fc-list | grep Wuncon or fc-list | grep -i siji returns nothing.
I did fc-cache -fv already. I'd like to use your fonts for polybar. Do you have any clue about what's going ?
I use arch linux (I did a pacman -Syu already)... Other fonts I download are detected as expected.

How to get character codes. (ubuntu/debian)

Hi this isn't an issue but i didn't know where to put this. If you're looking for character codes (e.g u+e09b) launch the character map, select siji and on the left side you should be able to select things like "latin" "buhid" etc. Scroll down to "common" then you should see a huge list on the map. Then just scroll down to U+E000 (after a bunch of white characters) then you should see all the characters.

https://imgur.com/a/MnfKmup

If you want you can post this on the wiki, as it helped me with polybar.
EDIT 2: If you want copy this just double click the icon that you want to copy, then you can copy it at the bar in the bottom. The one that says "Text to copy:" It doesn't work for all the characters though.

Change fontsize in lemonbar?

This is how it looks right now
image

Is there a way to increase the size to make the icons as large as font-awesome icons?

message Problem in ./install.sh

after executing the ./install.sh i've got the following message

[OK] Finished. Your font cache has been updated 
  Successfully installed \033[1;37msiji.pcf -> /home/fuyuhiko/.fonts\033[0m
  Add the following snippet in your \033[1;37m/home/fuyuhiko/.xinitrc\033[0m:

    \033[1;37mxset +fp /home/fuyuhiko/.fonts\033[0m
    \033[1;37mxset fp rehash\033[0m

  If it already exists then you can skip this step."

it looks like something is wrong and i don't know what exactly now i have to add to my ~/.xinitrc.

Running Manjaro I3 Community (based on Arch)

p.s. already tried to install trough yaourt but it didn't worked so i try to figure out why and this seems to be a reason.

Really tiny on HiDPI

On a hidpi device, these icons are really tiny. And using them in polybar, no matter what pixelsize I set them to, they remain the same size.

Why aren't the glyphs centered?

Example:
siji

Basically all of the glyphs seem to be off to the left. I can also notice this in xfd. On the other hand, the previews in the README seem centered. What gives?

Error usable ISO8859 font

Hi! this is great bitmap font, and I would like to install it on my computer (Arch Linux), I follow your installation instruction but I got this error :

Warning: Unable to load any usable ISO8859 font                              
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found

so, what should I do to solve it? thanks!

siji not being recognised in font-config

I'm on Arch and after a recent update, siji stopped appearing under fontconfig. Looking online, theres also a post on r/archlinux with a couple people reporting a similar issue in the comments.

fc-list | grep -i siji
returns nothing, despite
ls /usr/share/fonts/misc | grep siji
returning siji.pcf

Running fc-cache -rv or fc-cache -fv shows no new fonts installed in the directory containing siji.

I have 70-yes-bitmaps.conf in my /etc/fonts/conf.d and no $XDG_CONFIG_HOME/fontconfig is present. Other .pcf bitmap fonts load and function fine. I've tried gzipping siji, as most other .pcf fonts installed were, but that made no difference.

I've tried installing both using the AUR package and the install.sh script (both to /usr/share/fonts/misc & ~/.local/share/fonts/misc), with no difference between the two.

Running fc-query /usr/share/fonts/misc/siji.pcf
returns Can't query face 4294967295 of font file /usr/share/fonts/misc/siji.pcf

Please add a suckless and st glyph

Hi, can you please add some more suckless glyphs to match the dwm ones like a simple terminal 'st' glyph and surf glyph and dmenu glyph that would be awesome!

Error on view.sh

Warning: Unable to load any usable fontset
Warning: Cannot convert string "-wuncon-siji-medium-r-normal--10-100-75-75-c-80-iso10646-1" to type FontStruct
xfd: no font to display

Large Size?

First of all, this is amazing work. I assume you worked pixel by pixel, which must have taken a lot of patience, so thank you.

In the world of font glyphs, most authors make fonts around the 10-pixel range, but for me on my 1920x1080 screen these fonts look very small. It's hard to tell them apart. Does the same happen for you? If not, could you explain how to make the glyphs appear larger? If they appear small to you at high screen resolution, would you consider doing a ~17px set?

List of codes?

Currently we're provided only with the image and need to discover the glyph codes ourselves with xorg-xfd. It would be nice if the example image included hex codes.

How to specify the default fallback font for normal alphabet characters

I want to use Siji icons to indicate workspaces in dwm, in combination with Terminus font for window titles and date etc. Currently I have the following setting in config.h

static const char *fonts[] = { "Wuncon Siji" /* Iconic Glyphs */
","
 "Terminus:pixelsize=20"    /* For Normal Text */
};

The problem is that if I place Siji before Terminus, the workspace icons are correctly displayed, but the text will fallback to another font which I don't want. On the other hand, when Terminus is placed before Siji, normal texts are OK, but the icons are replaced with some random Kanji.

Any suggestions?

Or it was the wrong way to specify multiple fonts in dwm? Anyway, the dwm-related example shown in the Github frontpage seems to be outdated ...

Generate a release tag

Hello @stark, I'm trying to package this font to ship with a distribution. Could you please create a release tag so that I can have a point of reference other than a git commit? I can make the commit work for now, but I think the community users of this font would really appreciate a tagged release. It makes our job a lot easier. Thank you very much for creating something so useful! -maffblaster

Font not found after reboot

By some weird reason the font was correctly recognized by the system right after installation, however, after reboot it cannot be found.
I tried both manual installation and AUR package, but it does not work for both.

fc-list | grep siju outputs nothing after reboot, and icons don't work on polybar.

If any additional information is needed, please, provide some instructions for obtaining it.

xfd found no font & unable to load any usable ISO8859 font

I'm running Arch Linux Arm on a raspberry pi. I grabbed the source of siji from github, installed it to $HOME/.fonts/, and also the xorg-xfd package.

When I tried to run ./view.sh, I got the following error message:

Warning: Unable to load any usable ISO8859 font
Warning: Missing charsets in String to FontSet conversion
Error: Aborting: no font found

Strangly enough, I did exactly the same thing on another amd64 Arch Linux laptop, this time everything works just perfectly fine. So there might be some packaging issue of the Arch Linux ARM repo? I have no ideas. I searched a bit about the issue online, but could not find any helpful information to my particular case.

Any ideas and suggestions about what missing setup or config are needed?

Did Git history change?

From a previous pull:

$ git log --oneline
2546822 (HEAD -> master, origin/master, origin/HEAD) Use printf instead of cat to show success message. (#13)
95369af Readme.md: Updated CRUX port's URL and some minor edits
e2617ba Readme.md: Minor edits
64ea5c6 Updated github repository URL
ea240bd Readme.md:  Added brandon99's AUR package install.sh: Minor edits
11f8f99 Readme.md: minor edits
fced93e Readme.md: Add z3bra's CRUX port of siji and some minor changes to the formatting
9fea5c7 install.sh: minor edit in post_install()
712afb1 view.sh: minor edit of error message in check_xfd()
80b71c1 install.sh: Minor fixes to update_cache()
bd74dd8 install.sh: New installer script view.sh:    xfd script for viewing glyphs Readme.md:  Add instructions for installation and minor edits moved 'siji.pcf' to new pcf directory Add LICENSE
8923620 Update Lemonbar example
b2bcdb6 Update Readme
080fa69 Add a preview
82f0c98 Update Readme
ae19e3c Changed project name to Siji due to existence of a font with a similar name
f7b2eb9 Adding 65 new glyphs, replacing some existing ones and updating Readme
9983af7 Update Readme
fd84df5 Update Readme
8524871 Update Readme
6bbeb00 Add Readme
1e38d6e Initial Commit

And the current state:

$ git log --oneline
9d88311 (HEAD -> master, origin/master, origin/HEAD) Use printf instead of cat to show success message. (#13)
3cbb7fe Readme.md: Updated CRUX port's URL and some minor edits
4365d2b Readme.md: Minor edits
7b109ea Updated github repository URL
442498f Readme.md:  Added brandon99's AUR package install.sh: Minor edits
69a9973 Readme.md: minor edits
76a60f1 Readme.md: Add z3bra's CRUX port of siji and some minor changes to the formatting
2696e11 install.sh: minor edit in post_install()
d14badb view.sh: minor edit of error message in check_xfd()
8767949 install.sh: Minor fixes to update_cache()
4c7dec5 install.sh: New installer script view.sh:    xfd script for viewing glyphs Readme.md:  Add instructions for installation and minor edits moved 'siji.pcf' to new pcf directory Add LICENSE
8923620 Update Lemonbar example
b2bcdb6 Update Readme
080fa69 Add a preview
82f0c98 Update Readme
ae19e3c Changed project name to Siji due to existence of a font with a similar name
f7b2eb9 Adding 65 new glyphs, replacing some existing ones and updating Readme
9983af7 Update Readme
fd84df5 Update Readme
8524871 Update Readme
6bbeb00 Add Readme
1e38d6e Initial Commit

They agree up to commit 8923620, after which, the hashes change.

It looks like all that's changed is the author, (not even the commitdate or author date).

$ git show --raw bd74dd8
commit bd74dd8f7c25ae68d7b2bdc105a39951eb73fe62
Author: gstk <[email protected]>
Date:   Mon Jul 20 20:51:44 2015 +0530

    install.sh: New installer script
    view.sh:    xfd script for viewing glyphs
    Readme.md:  Add instructions for installation and minor edits
    moved 'siji.pcf' to new pcf directory
    Add LICENSE

:000000 100644 0000000 d159169 A    LICENSE
:100644 100644 8d7055e 26d9933 M    Readme.md
:000000 100755 0000000 643b924 A    install.sh
:100644 100644 c863f4f c863f4f R100 siji.pcf    pcf/siji.pcf
:000000 100755 0000000 c77ff3d A    view.sh

vs

$ git show --raw 4c7dec5
commit 4c7dec572a0579f80fc1ffd5e6a338e89ad7e6c6
Author: stark <[email protected]>
Date:   Mon Jul 20 20:51:44 2015 +0530

    install.sh: New installer script
    view.sh:    xfd script for viewing glyphs
    Readme.md:  Add instructions for installation and minor edits
    moved 'siji.pcf' to new pcf directory
    Add LICENSE

:000000 100644 0000000 d159169 A    LICENSE
:100644 100644 8d7055e 26d9933 M    Readme.md
:000000 100755 0000000 643b924 A    install.sh
:100644 100644 c863f4f c863f4f R100 siji.pcf    pcf/siji.pcf
:000000 100755 0000000 c77ff3d A    view.sh

note that all the file hashes are the same. And diffing the two pcf/siji.pcfs against each other also shows the same.

This gave me problems when pulling and updating. Was there a force push to change something?

Polybar Issues

I'm trying to use it with my Polybar, but it isn't working. I have the font names all right (double checked with other dotfiles and issues) but the icons won't load. This is the error message I get when I run my bar.

warn: Dropping unmatched character  (U+e05c)
warn: Dropping unmatched character  (U+e097)
warn: Dropping unmatched character  (U+f04c)
warn: Dropping unmatched character  (U+e09d)
warn: Dropping unmatched character  (U+e04f)
warn: Dropping unmatched character  (U+e048)
warn: Dropping unmatched character  (U+e254)
warn: Dropping unmatched character  (U+e018)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.