What is the different between a character set and a graphic set?
What is the different between a character set and a graphic set? The wiki is confusing.
The wiki says about character sets: "A character set is an image in BMP or PNG format that contains the 256 different tiles, corresponding to the IBM Code Page 437 (sometimes called Extended ASCII), which are used to display the main graphics."
Then it says about graphic sets: "Character sets only change certain graphics, while others are left out. The confusingly-named....." Wait, first the wiki said it contains all 256 characters and then it said it doesn't?
Explain the difference to me.
Best Answer
Character sets contain "all" 256 characters, but that isn't all the variety that's possible in a graphics set. A graphics set can, for example, set different graphics for a miner dwarf and a fisherdwarf, which would be represented by the same ASCII character.
Pictures about "What is the different between a character set and a graphic set?"



What is a character set Meaning?
A character set refers to the composite number of different characters that are being used and supported by a computer software and hardware. It consists of codes, bit pattern or natural numbers used in defining some particular character.What is a character set give examples?
A defined list of characters recognized by the computer hardware and software. Each character is represented by a number. The ASCII character set, for example, uses the numbers 0 through 127 to represent all English characters as well as special control characters.What is the purpose of character sets?
Each character (such as uppercase and lowercase letters, numbers and symbols) must be stored as a unique number called a character code if a computer system is to be able to store and process it.What is the standard character set?
Unicode is a universal character set, ie. a standard that defines, in one place, all the characters needed for writing the majority of living languages in use on computers. It aims to be, and to a large extent already is, a superset of all other character sets that have been encoded.ASCII and Unicode Character Sets
More answers regarding what is the different between a character set and a graphic set?
Answer 2
The difference between the two is that they are used in two different "modes" of the game, with a graphics set having much finer-grained control over the visual display.
The original, default display mode for Dwarf Fortress is to emulate the look and feel of a traditional ASCII rogue-like, by using only the 128 standard characters from the ASCII character set plus 128 "extended" characters added by IBM to their Code Page 437, which most MS-DOS-based PCs used (and most English-Language Windows PC's still have as their "OEM code page").
Technically, in its current form, it's not really an "ASCII" game -- it's not printing text to the screen based on the system's code page. Rather, it's drawing glyphs from a "character set" file, in which the default glyphs exactly match the IBM CP 437 set:

However, you can replace these with your own character sets, by swapping out cells in the image table with your own. They don't need to look like the CP437 glyphs, but the position in the table still corresponds to the ASCII value used by the game, meaning even the rendered text will change if you do this:

Note, in this image, some of the punctuation, plus the upper-case X, look different than you'd expect. In places where the game prints strings of text, those changes will show up. (This is a problem with some character sets that replace lower-case letters with other things, making it sometimes hard to read the text.)
Alternatively, you can switch the game into graphics mode by telling it to use a graphics set, but only for creatures. In this mode, the game no longer just picks one of 256 glyphs to display things with, but rather, uses a much broader set of tiles that reflect more of the characteristics of a given creature. In this case, the creator of the graphics set provides one or more tables of graphics tiles, plus a set of index files that tells the game where to find a tile for any given "raw element". For example, the popular Phoebus graphics set has a 12x21 table (not entirely full) just for humans:

and similarly dense tables for goblins and dwarfs, plus a few extra ones for other creatures/monsters/animals/etc.
It's important to note that graphics sets can only replace the tokens used for creatures. When rendering things like plants and buildings and objects, the game still uses the glyphs from it's character set, so typically, you would have both a graphics set and a character set, from the same third-party source, in use at the same time.
Answer 3
A character set contains always 256 tiny images, each representing an ASCII character. This is meant to substitute the current character set where "d" means a dog for another one with a different style of "d" being a dog. If using a character set, you can distinguish a miner from a jeweler because the first is white and the second is green, both being the same character.
On the other hand, a graphic set may contain some images or a lot of them, intended to replace characters on screen. It does so because it contains not only images, but also rules about when to use each image. In this way, you can distinguish a miner from a jeweler not because the colour, but because each one uses a different image (a face with beard and a pike, and a face with beard and a jewel, e.g.) so you can end with more than 256 different images on screen.
Some graphics sets replaces only a few characters for images (one by one or one by several by using rules), and some replace the whole set of characters.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Skylar Kang, Lachlan Ross, Jill Burrow, Olga Lioncat
