You are not logged in.

#1 2024-12-05 01:31:04

Loloto
Member
Registered: 2024-11-28
Posts: 3

non-breaking spaces print as square

hello, i am newbie in arch, i'm having trouble printing "non-breaking spaces", instead printing an space it write an square.
hp laser printer.
if someone can help me to find the origin and how to fix it i appreciate a lot.
if it's misplaced, please tell me where in this forum it should be.
thanks.

Offline

#2 2024-12-05 06:10:43

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,707

Re: non-breaking spaces print as square

"hp laser printer" - do you print in text mode (no, that's not what happens by default)?
What exatly generates this print?
What does it look like on-screen (if you want to provide a screenshot, please only link and don't embed it)?
What font do you use?

Online

#3 2024-12-05 22:24:54

Loloto
Member
Registered: 2024-11-28
Posts: 3

Re: non-breaking spaces print as square

>What exatly generates this print?
adjunct link to an image,
https://drive.google.com/file/d/1azXv_v … drive_link
>What does it look like on-screen
not necesary on screen looks fine
>What font do you use?
Liberation Serif <-- looks wrong
DejaVu Serif <-- looks good

Also I tried generating a pdf and print them, same bad results.
So, I think it's a font trouble.
I can't figure what it could be, and how to determine the package name is need to install.
thanks again for the replie.

Offline

#4 2024-12-06 06:37:39

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,707

Re: non-breaking spaces print as square

https://bbs.archlinux.org/help.php#bbcode

https://drive.google.com/file/d/1azXv_v … drive_link
Is a private share?
=> imgur.com

on screen looks fine

Liberation Serif <-- looks wrong
DejaVu Serif <-- looks good

So the problem is the liberation font (only)
Documents using dejavu look ok?
Both on screen and in print?

pacman -Qs liberation
fc-list | grep -i liberation

Online

#5 2024-12-10 22:06:39

Loloto
Member
Registered: 2024-11-28
Posts: 3

Re: non-breaking spaces print as square

sorry for the delay

https://drive.google.com/file/d/1azXv_v … drive_link
>Is a private share?
my fault, now it is public
here is

>So the problem is the liberation font (only)
probably, i'm doing more test. by now is the only one.

for sure, it can be solved changing the font in all my docs, however the best deal it dicover why it's look bad.

>Documents using dejavu look ok?
yes, I already install de font again using pacman

>Both on screen and in print?
only on paper

pacman -Qs liberation
local/ttf-liberation 2.1.5-2
    Font family which aims at metric compatibility with Arial, Times New Roman,
    and Courier New

/usr/share/fonts/liberation/LiberationSerif-Italic.ttf: Liberation Serif:style=Italic
/usr/share/fonts/liberation/LiberationSans-Bold.ttf: Liberation Sans:style=Bold
/usr/share/fonts/liberation/LiberationMono-Bold.ttf: Liberation Mono:style=Bold
/usr/share/fonts/liberation/LiberationSerif-BoldItalic.ttf: Liberation Serif:style=Bold Italic
/usr/share/fonts/liberation/LiberationSerif-Regular.ttf: Liberation Serif:style=Regular
/usr/share/fonts/liberation/LiberationSerif-Bold.ttf: Liberation Serif:style=Bold
/usr/share/fonts/liberation/LiberationMono-Italic.ttf: Liberation Mono:style=Italic
/usr/share/fonts/liberation/LiberationSans-BoldItalic.ttf: Liberation Sans:style=Bold Italic
/usr/share/fonts/liberation/LiberationMono-Regular.ttf: Liberation Mono:style=Regular
/usr/share/fonts/liberation/LiberationSans-Italic.ttf: Liberation Sans:style=Italic
/usr/share/fonts/liberation/LiberationMono-BoldItalic.ttf: Liberation Mono:style=Bold Italic
/usr/share/fonts/liberation/LiberationSans-Regular.ttf: Liberation Sans:style=Regular

Offline

#6 2024-12-10 22:49:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,707

Re: non-breaking spaces print as square

Please use [code][/code] tags, not "quote" tags.

DejaVu also produces a tofu on screen??

FC_DEBUG=4 pango-view --font="Liberation Serif" -t " " | grep family:

(The quoted space behind "-t" is the nbsp, not sure whether the bbs or your browser might flatten that to a regular space, so replace it when copying this)

The image shows some print, what I meant is "what ends up rendering the document?" (libreoffice, abiword, gimp, etc)

Online

Board footer

Powered by FluxBB