
Unfortunately quite a few of those don't render on my tablet
For the others, would it be possible to link to the specific plane, not just https://en.wikipedia.org/wiki/Plane_(Unicode)

installing fonts is a never-ending rathole.
That is determined by the font you use: not all fonts have a good glyph coverage. CJK may be poorly supported, for example.
That is determined by the font you use: not all fonts have a good glyph coverage. CJK may be poorly supported, for example.These days CJK coverage is usually fine. Its technical things that have the most issues. The symbols coverage for maths, logic, and related things can still be pretty patchy. I usually view technical PDFs in Firefox or Chrome these days. They seem to display everything well.
As DejaVu Sans is licensed under a free license that basically requires you only to provide the license file with the font typeface
QuoteAs DejaVu Sans is licensed under a free license that basically requires you only to provide the license file with the font typeface
How would one do that for such as a web page? Or is the intent to make the license available on request rather than provide (with the implication of 'with')?
for a total of under one megabyte
PDF files typically include the vector description of the glyphs it uses, similar to how browsers can use WebFonts.
PDF files typically include the vector description of the glyphs it uses, similar to how browsers can use WebFonts.PDFs can include vector descriptions, but rarely do. 90% or more of the technical documents I use do not display correctly unless I use a platform with comprehensive font coverage, like Chrome or Firefox. For example, I have never seen an ITU document which displays correctly without adequate symbol coverage in the platform.
PDF files typically include the vector description of the glyphs it uses, similar to how browsers can use WebFonts.PDFs can include vector descriptions, but rarely do. 90% or more of the technical documents I use do not display correctly unless I use a platform with comprehensive font coverage, like Chrome or Firefox. For example, I have never seen an ITU document which displays correctly without adequate symbol coverage in the platform.When the generation is via PostScript, the PS-to-PDF conversion often assumes the core PostScript fonts are installed. This leads to PDF files that refer to PostScript Core Fonts without including them, leading to PDF files that require those fonts to be included for the PDF to render correctly. This is typical for large organizations which "moved" to PDF by just appending a PS-to-PDF conversion to their existing PostScript format publishing systems.
I checked the PDF version of the example DejaVu Sans Mono webfont example HTML page I created, and I verified with FontForge (it can extract fonts from PDF files) that it did include the used glyphs from the DejaVu Sans Mono font in it. Basically all PDF files I create do include the glyph definitions for all characters used in that document, so I do object a bit about that "but they rarely do [include the font typefaces used in it]".
If we adjust the statement to "PostScript-oriented and MS Windows -based PDF generation often omits default fonts used in Windows or defined as PS Core Fonts, leading to PDF files with missing fonts on other systems", then I do agree.
The point is that one should not assume that generating a PostScript file and then converting that to PDF yields optimal results, because it does not. One should always use the "native" 'export to PDF' or 'print to PDF file' approach instead.
I haven't seen a Linux platform where Okular, Evince or other tools display properly, as they all rely on the system's font set
I haven't seen a Linux platform where Okular, Evince or other tools display properly, as they all rely on the system's font setNOT TRUE! They use the embedded glyphs, if available. For proof, open the attached xnib.pdf PDF file in any of them.
I used FontForge to modify the letter x in the DejaVu Sans Mono font to have a small extra nib/serif in the upper left, and generated a WebFont from that.
(Note that after generating the webfont files (xnib.woff2 and xnib.woff), I completely deleted the modified TrueType font. It was never installed on my system, and only exists as a Web Font at this point.)
I then reused my existing example HTML page, changing the CSS reference to xnib2.woff2 and xnib.woff only, and replaced the text with a single x.
In Firefox, that page when opened, shows the extra nib/serif in that x. I then saved that page as xnib.pdf, as attached.
If you open the PDF a browser, you'll see an A4 portrait sized page, with a gray rectangular outline, with a single x near the upper left corner –– with that extra nib/serif in that x.
If you open the PDF file in any of the programs you mentioned, if you see an x with a nib/serif, the viewer uses the embedded font/glyph/typeface in the PDF, contrary to what you asserted.
Only if you see a normal monospace x, does the viewer use a system font.
In all PDF viewers I have in Linux Mint 20.3, including Evince, I see the nib; they thus use the embedded glyph, and not the system font.
Note that you can still copy the letter x from the PDF when viewing it, and it will paste as a normal letter x. It is not graphic; it is text, just with a custom typeface (glyph for x).
I assert that the font problem is because people generate the PDF files wrong!
In Windows, you have to do some deep configuration in the PDF-emitting programs/drivers to get it to embed the fonts that are installed by default on Windows, because Microsoft only considers people using Windows, and prefers things looking shitty on all other systems. Similarly on Mac OS wrt. standard Apple fonts. Similarly, any document generation path that first generates PostScript, will assume that PostScript Core Fonts are installed, and when such a file is converted to PDF, those PS Core Fonts are assumed to be installed in all viewers and are not embedded in the PDF file.
I am very, very serious about this, and the attached xnib.pdf is my immediate proof proving your assertion (that Linux viewers like Evince and Ocular use system fonts and not the embedded glyphs in the PDF) is absolutely incorrect, in a form that is easily verifiable.
If you find it hard to accept my reasoning above, just let me know, and I'll create a second example HTML page, this time with a customized (extended) font, and instructions on how it (and the PDF version of that HTML page) was created, so you can reproduce everything for yourself, and verify this all for yourself.
I do expect you to then try and reproduce it, and report back, however. Tit for tat!
In particular, it is not necessary to include the TrueType font file in the CSS; the WOFF2 and WOFF formats will suffice for all current and non-ancient browser versions (Firefox 3.6 and later, Chrome 6.0 and later, IE 9 and later, Konqueror since KDE 4.4.1, MS Edge (all versions), Opera 11.10 and later (Presto 2.7.81 and later), Safari 5.1, webKit build 528 and later). Including the TTF font is just a nicety, that may help future browsers; plus, if installed (and only the TrueType/OpenType version can be "installed"), it allows those editing the HTML to see the same glyphs in their editor, instead of only in the browser. It does not matter for the nibbed x here, but it does matter with fonts having custom Private Use Area characters.
We have to read the documents to are provided with. They hardly ever contain the glyph information.
We have to read the documents to are provided with. They hardly ever contain the glyph information.That will only change if we tell those providing the documents they are generating them wrong, and push them to do it right.
Just like with code comments, we can agree a lot of them are utter garbage, less than useful.
I'm saying that instead of stripping the code comments out or telling people not to use comments at all, we push those we can to write good/better, useful comments, and for them in turn to push others when they can.
We cannot affect everyone, neither developers or document providers. We can only affect those who care about our feedback, like learners in my case.
Yet, if we don't push back at all, we're essentially just accepting that the world is filling with more and more shit, and doing nothing about it.
I don't think that is useful. I think pushing back, where possible, and at minimum pointing at the true culprit, is the reasonable path.
The true culprits are wrong methods/tools/settings used to generate the documents; and bad choices of what to describe in code comments.
There is zero value in blaming the end result –– that most code comments end up being not useful; or noting how hard it is to get all the fonts installed in Linux that Windows/Mac/PostScript document generators' take for granted and assume are installed.
Why are they wrong? Stuffing glyphs into documents was supposed to be a temporary bodge during a trasitional period.
After all these years we should be able to rely on a Unicode character set being complete on all but a very small platform. If I plug a USB stick into my car, and play songs, my UK model car shows the Chinese song titles properly, even for some of the more obscure Chinese characters. Its 30 years since I first worked with Unicode (which itself was a bodge from day 1, as MS got them to base it on 16 bit characters), and we are still dealing with these issues on shiny new systems. Its pathetic.
I consider it an error when anyone creates a PDF file that does not do the same. It is like choosing one specific font to be used on your web page, laying it out exactly using that font, and then not caring a whit if the users have that font installed or just see a garbled web page.
Why does no-one write comments any more? Not even just something to say what the function is meant to do, never mind the intricacies of how it goes about that. Some cryptic 12-character name may mean something to the programmer but it's bugger-all use when coming afresh to get a birds-eye view of things.
And variables! Really, do babies die or something if you let on WTF a variable is about?
If you need comment your code extensively, it's either badly written code, or function names and variables are poorly chosen
Yes, so best give up and do something else. Or, you could just add a comment to help out the viewer a bit. No-one is perfect, yet all we see here is the assumption that we must be. Or else... well, what?
Yes, so best give up and do something else. Or, you could just add a comment to help out the viewer a bit. No-one is perfect, yet all we see here is the assumption that we must be. Or else... well, what?Nobody says anything about giving up. It's about learning best practices. It literally takes zero effort to type extra characters that conveys a meaningful function name, or a variable name. I've seen way too many "helpful" comments that lead me to down to a garden path of misdirections, only because the code was re-factored a few years ago, leaving the comments unchanged and completely irrelevant.
The only time i find myself commenting code is to describe some unusual algorithm or mathematical concept, with citations/references included.
Spare me the reductionist strawmans mate. Read my previous comment here:
https://www.eevblog.com/forum/programming/comments/msg5241498/#msg5241498QuoteThe only time i find myself commenting code is to describe some unusual algorithm or mathematical concept, with citations/references included.