Comments (11)
In Console2 or ConsoleZ, rendering or selection use fixed size computation.
In a Unicode fixed size font, each chars in a same same character set seems have the same size. But when multiple character sets are mixed, this assumption is wrong.
Console2 doesn't force the width of each char, but truncate blocks (chars with same colors).
ConsoleZ force the width of each char to guarantee a perfect alignment.
Here a comparison between Console2 (left) and ConsoleZ (right):
You can see chars truncated, wrong alignment and bad selection of the string "employé de magasin".
That's why I fix the rendering.
The font metrics contain average width and max width. The average width is used (max width is really too big).
Japanese chars needs more space to a great display ... so what's size to use? Let the user choose the width?
from console.
I'm using font size "12". ([settings - Appearance - Font].)
from console.
Can you try this version : https://truck.it/p/xtnU0k8bUW
You can configure an extra width added to the fixed width of the font.
Go to Settings/Appearance/Font
from console.
Thank you!
But, the alphabet is also unnaturally wide and it is hard to see it.
I wish to the same display as a "Console Window".
[related Problem]
When the Japanese character is contained in the path, a space enters before a caret. (red line)
[workaround?]
I corrected as follows based on the source code of Console2.
diff: http://pastebin.com/GghztUrz
However, the caret has overlapped with the delimiter(">")...
from console.
ok you use a DBCS code page.
I think I have corrected the DBCS monospace display.
Can you try ? https://truck.it/p/7BX1-2TCNz
from console.
Thank you for the correspondence.
I think that is displayed correctly most.
[Problem]
a "prolonged sound mark" overlaps and displayed. (red line)
"prolonged sound mark": Cho-On-Pu (Unicode: U+30FC), Wikipedia: http://en.wikipedia.org/wiki/Ch%C5%8Donpu
Main Window (Extra width "0"):
from console.
What is the font of the Console Window ? Raster font ? In this case, try with a true type font.
from console.
At home,
with raster font, DBCS attributes are missing for all chars:
Console Window draws Japanese chars on 2 cells but it does not match the contents of the buffer!
With True Type font, the result is better. But DBCS attributes are missing for some chars (like prolonged sound mark):
Console Window draws this char on 2 cells, but attributes are missing and selection is wrong.
Main Window draws this char on 1 cell and selection is right.
It seems there is a bug in Microsoft console API with DBCS.
from console.
I'm using the TrueType font (MS Gothic) in a console window.
It seems to be difficult if the cause by which a prolonged sound mark is not displayed correctly is a console API bug...
Thank you for your support.
from console.
Hi,
I have successfully used the following workaround under Windows 7 and Windows 8.
Select the true type font and use a size greater than or equal to 20.
disadvantage:
In the console window, the maximum number of rows and columns is limited to the number of displayable characters on the main screen. Therefore, greater the font size is big and the greater the number of row and column is small.
from console.
Thank you for information of the workaround.
I made sure that the problem of "prolonged sound mark" is resolved.
from console.
Related Issues (20)
- Custom shell not remembered when restoring session
- ConsoleZ crash while starting if file containing current desktop wallpaper is moved HOT 3
- Make it possible to deactivate font size adjustment on Ctrl+Mouse/Touchpad scroll
- feature: increment inside border limit HOT 2
- Hotkey customize can not use Alt+c HOT 2
- select characters by mouse key click HOT 1
- How to modify encoding of consoleZ.... HOT 2
- Hindi text Error (bug)
- Reuse or Attach Console when using ASG Remote Desktop Context HOT 1
- Unable to select with mouse HOT 5
- Importing settings to a new installation HOT 4
- How to open a tab in the exist windiow via DOS command? HOT 1
- ConsoleZ.sln uses v142 toolset but is in VS2017 format? HOT 1
- how do you change the prompt!? HOT 1
- consolez doesn't display Chinese characters with "enable typographic ligature" on
- Tabs are lost if closed by Windows shutdown
- Windows XP Support HOT 1
- Windows 11 Terminal in Background HOT 2
- How to restore session/workspace HOT 1
- Quick edit mode and a couple of things HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console.