335 questions
1
vote
1
answer
159
views
Use opentypejs to loop through all glyphs in a font and output them to the page
TL/DR: How to display each glyph from a font file using some parsing method that shows all of the characters.
I am trying to build a glyph viewer for one of several fonts I want to show on a page.
...
0
votes
1
answer
118
views
Handling DrawGlyphRun missing characters in WPF
I am using drawingContext.DrawGlyphRun in my scenario, as I need the best performance I can get as I am rendering a large amount of text at lots of different positions on screen.
However, I have come ...
1
vote
2
answers
111
views
How to display different forms of Farsi letter as a single Letter [duplicate]
How can I display the connected forms of a letter by itself? For example, I'm working on a flashcard webpage to study Farsi (Persian) as a personal project and when trying to make a flashcard for the ...
0
votes
1
answer
159
views
Freetype FT_Load_Glyph: expecting FT_GLYPH_FORMAT_BITMAP, getting FT_GLYPH_FORMAT_OUTLINE
This works as expected when built for x64 and running on the Windows desktop, but not as expected when built for UWP-arm64 and running on the HoloLens:
After verifying that a selected face has a ...
1
vote
1
answer
367
views
.NET MAUI Dynamically Added Button to CollectionView does not show Glyph/ImageSource
I'm using a CollectionView in .NET MAUI, in order to add Buttons dynamically, therefore being able to dynamically change the order of the buttons.
For this end, I've created a ButtonObject model:
...
0
votes
0
answers
109
views
How to Calculate Text width according to font (script categories font) in ios?
I was creating a feature where user can add a text and apply different font basically i have taken a Uitextview for this. what i was doing is calculating text size based on string and after getting ...
3
votes
0
answers
225
views
Not able to add glyph to a font using python
I am trying to create a new font using some glyph of my own using python. I have have a function to parse the SVG file representing a glyph and converts it into a FontTools TTGlyph object.The function ...
0
votes
0
answers
152
views
PDField set default appearances multiple fonts - pdfbox 2.0
There are two type of font glyphs
• (U+2022) Bullet Unicode Character which is supported by one Japanese font
U+200B - Zero Width Space which is supported by one Japanese font
Can we set (PDField)...
1
vote
0
answers
180
views
SVG to Glyphs conversion
Can anyone suggest any python library to convert svg into glyphs. I have used fonttools and font forge. Is there any other suggestion.I have tried fonttools and fontforge,I am using windows and ...
0
votes
2
answers
270
views
Can the browser render a glyph stored at code point 0x09?
I'm trying to add functionality to a serial port web app which can represent all received bytes from 0x00 to 0xFF (including typically unprintable characters, e.g. ASCII control codes) as a single ...
8
votes
2
answers
9k
views
Strange error in console after installing Font Awesome 4
I have installed FontAwesome 4.7 without any file changing. Works alright. But why Firefox shows these strange warnings? There are a lot of them. Can't understand what is wrong.
<link rel="...
0
votes
0
answers
119
views
icons from wingding 3 fonts wont display on andoid 13
I'm trying to draw arrows on button with wingding 3 font, fonts added in resources, registered in mauiprogram.cs, but on android 13 platform icons don't appearing, but on Android 8 all working ...
0
votes
0
answers
43
views
When using Core Text to draw an NSAttributedString, why is my text drawn repeated?
I have an NSLayoutManager subclass, overriding - (void)drawGlyphsForGlyphRange:(NSRange)glyphsToShow atPoint:(CGPoint)origin and i'm trying to draw the NSAttributedString with CoreText.
This is what i ...
1
vote
1
answer
242
views
Display alternative font character with CSS
I'm building a website on Squarespace and am using a web font that I bought. It has an alternative for "A" that I want to use instead of the default.
Within the CSS Panel on Squarespace I've ...
2
votes
1
answer
2k
views
Is there a Unicode 'combiner' akin to a superscript style?
Looking at how we handle superscripts (and subscripts).
I see that on the one hand they are treated like a style.
i.e.
x<sup>y</sup>
becomes:
xy
But in Unicode we seem to have ...
0
votes
1
answer
279
views
Glyph not displaying
I imported the Google font NotoMusic-Regular.ttf to my SwiftUI iPhone project and everything was going smoothly until I tried to use the 5-line staff glyph. It renders as the question-box unknown ...
0
votes
0
answers
3k
views
how to convert svg path to glyph path code
I have this type of icons in my website
<glyph unicode="" glyph-name="fb" horiz-adv-x="532" d="M531.692 789.858h-96.886c-78.769 0-89.797-36.234-89.797-...
0
votes
0
answers
82
views
Incorrect glyph scaling in my terminal emulator
I'm writing a terminal emulator in C++20, just for fun
My objective is to make an exact DOS VGA text mode emulation (80x25 characters), but I want to let the user choose the window resolution. I'm ...
0
votes
1
answer
212
views
Bokeh plot using a function of values in ColumnDataSource
I'd like to plot a glyph using a function of the values in a ColumnDataSource instead of the raw values.
As a minimum example, suppose I want to plot a point that the user can drag, which moves ...
1
vote
1
answer
714
views
How do I have unicode characters on GitHub shown as characters rather than icons?
I decided to write the name of this plugin of mine as vim↪softwrap rather than vim-softwrap, but, to my surprise, GitHub shows the ↪ as an icon:
What can I do to avoid that?
I'm not sure whether it'...
-2
votes
1
answer
46
views
having difficulty to understand this while loop?
I have difficulty understanding this while loop:
0
votes
2
answers
1k
views
How do I set the glyph style on all bulleted lists in a Google doc using App Script [closed]
I am automating the building of a document based on a set of inputs. I started with Google's example here: https://developers.google.com/apps-script/samples/automations/aggregate-document-content, and ...
2
votes
1
answer
2k
views
Issue with FontImageSource Glyph when using a Binding
Using Xamarin Forms 5 and Visual Studio 2022.
I have added the materialdesignicons-webfont.ttf to a Fonts folder of the PCL project only and marked it as an Embedded Resource.
I have added the ...
2
votes
1
answer
1k
views
How to make local glyphs and sprite to be used on my style file for my hosted map?
I am making a vector tile map and using Maplibre engine to show it on my website.
I used to use Maptiler but now am going to host my own personalized map on my desired Hosting Service Provider.
I need ...
2
votes
1
answer
529
views
Get Glyphs of a character without using fallback font
I'm trying to get CGPath from glyphs for all the fonts available on my iPad, in a few cases the Glyphs are not available for fonts such as "AcademyEngravedLetPlain" which looks like below:
...
0
votes
1
answer
250
views
Getting the glyph width of a monospaced font
Recently I asked on a different forum about the glyph width of the Source Code Pro font (it’s 600). This helps me in setting tab stops in a word processor for code samples.
How do I find the glyph ...
0
votes
0
answers
343
views
why signed distance field keep quality perfect when scale being larger and common picture not?
Here is example for rendering text by signed distance field(SDF):
When the fontsize getting bigger,its quality keeps perfect.
Interpolation must be there. But why common picture getting lower quality, ...
0
votes
0
answers
35
views
Font resolution changes on resize
I have bought online the Hackney font. This is great font, but depending on the size of the displayed area, or the size of the font, this latter suddenly changes its resolution. Here is a comparison ...
1
vote
0
answers
298
views
How to center an image into another image when using apache pdfbox
I used Apache to extract glyph images. At the moment this feature works fine but the problem I have is that some of the glyph images do not fit properly in the center of the new image I am creating ...
1
vote
0
answers
219
views
Win32 API rendering of Unicode chars, which are missing in font file
I am using Delphi IDE (XE2 or later, I use several of the recent versions). It is a Win32 API question (Windows 10) rather than a Pascal question.
If I render on TCanvas and use the font Codename ...
1
vote
2
answers
721
views
How to change an XAML glyph from C#?
I have an XAML label that shows an empty box. It's using a glyph font-family similar to Microsoft's MDL2 assets (except cross-platform).
<Label Content="" FontFamily="...
0
votes
1
answer
501
views
Delphi TSpeedButton losing glyph when disabled
I have a TSpeedButton that should have 2 main statuses, one for the pressed status (down) and one when it's up. What i want to achieve is to display an icon of the glyph bitmap also when the button is ...
1
vote
0
answers
94
views
Oxygen font with uneven S char when font size: 12px
I'm trying to use the Oxygen font on a website with size: 12px.
This is the font:
https://fonts.google.com/specimen/Oxygen?preview.text=THIS%20IS%20A%20TEXT%20WITH%20UNEVEN%20S%20CHARS%20ON%20%...
0
votes
0
answers
473
views
How do get Firefox to display ASCII control code charachters 0-31 as font glyphs 0-31?
I am using a .ttf font ( _decterm.ttf ) that is loaded with CSS:
@font-face { font-family: "DEC"; src: url("FONTS/_decterm.ttf") format("truetype"); }
It has ...
0
votes
0
answers
209
views
Caption position in a TSpeedButton
I'm using C++Builder 11 Alexandria.
Is there a way to position a SpeedButton caption always centered even if there is a glyph?
Caption can be positioned at right, at left, at top or at bottom of the ...
1
vote
1
answer
890
views
PDF Tamil writing using PDFBox
We've encountered an issue with the rendering of Tamil letters in PDF viewers, where some letters are rendered differently than expected. Below, I've outlined the actual content rendering and the ...
0
votes
0
answers
244
views
Change key glyphs in ggplot2
I am having two issues with my ggplot. I am trying to plot two continuous variables in a scatterplot, stratified by a categorical variable (4 levels).
The first one is that the plot produces the ...
0
votes
1
answer
505
views
Python Bokeh: Rect not rendering with another glyph
Below I have some code for a circle and rectangle on a plot.
from bokeh.plotting import figure, show
from bokeh.models import LinearAxis, Range1d
from bokeh.resources import settings
from bokeh.models ...
1
vote
1
answer
1k
views
How can I use a custom ::marker for a list and preserve the horizontal spacing of the default marker?
In the snippet below, I used ::marker to change the marker of the list items. However the spacing is not exactly how I'd like it, as the marker goes too close to the text. Adding some space helps, but ...
0
votes
1
answer
566
views
Drawing Bezier curve with multiple off curve points in PyQt
I would like to draw a TrueType Font glyph with PyQt5 QPainterPath. Example glyph fragment: (data from Fonttools ttx )
<pt x="115" y="255" on="1"/>
<pt x="...
1
vote
1
answer
838
views
How to display Bootstrap icons in Xamarin?
I'm new to Xamarin development, but try to be exact.
Using Visual Studio 2022, with Xamarin version 17.0.0.182 (as displayed in VS About).
Found this great article on how to use Bootstrap icons, but ...
1
vote
1
answer
955
views
using an unicode code in a latex-document
I am writing a danish document. I want to use an old glyph unicode no: U+2184 [or U+0254, U+0186]. I do not succeed. Why and how should I proceed?
% !TEX TS-program = xelatex
% !TEX encoding = UTF-8
\...
-2
votes
1
answer
581
views
How can I ensure a Unicode character is displayed correctly at all times?
For instance, the below will sometime appear as a square and a letter u, respectively. How can I avoid inconsistencies?
content: "\E07A"; // Shopping cart icon
content: "\1F50E"; //...
0
votes
1
answer
2k
views
Displaying large text files with WPF C#
I'm trying to write a WPF application to display (possibly) large log files (50MB-2GB) such that they are easier to read.
I tried loading a 5 MB file with ~75k lines into a GridView with TextBlocks ...
1
vote
1
answer
1k
views
Blazor Web Assembly: downloadable font: glyf: Number of composite points in glyph 1258 exceeds maxp maxCompositePoints
In Blazor Web Assembly project I referenced Ubuntu font as default font for the project, when I load any page I got the following warning in console:
downloadable font: glyf: Number of composite ...
0
votes
0
answers
1k
views
WPF Bold Font - Use a different font or set Font weight?
How do I know when I should be appending "Bold" to the name of the font vs setting the font weight?
I have the following test function to demonstrate the issue:
public static bool IsBoldFont(...
0
votes
1
answer
216
views
How to use FT_Load_Char in Arabic (compatibility characters)
This is a follow-up of this question. I'm interested by different glyphs for the same character, also known as "Unicode Compatibility Characters".
Let's take the following two Arabic "...
1
vote
1
answer
311
views
Pygame Python font
I have a question regarding the glyph a font and the pygame width of a font yesterday i some code regarding this here is the code:
import pygame
pygame.init()
win = pygame.display.set_mode((800, 600))...
0
votes
1
answer
537
views
How to specify a TTC font index in a Glyphs.FontURI property?
I want to put a TTC (True Type Collection) font file in FontURI property of a Glyphs.
I use .Net5.0
I found in the old silverlight documentation this :
https://learn.microsoft.com/en-us/previous-...
2
votes
0
answers
1k
views
Icons Font - WOFF2 showing squares ☒ on some devices
I generated an Icon webfont using IcoMoon, and then used FontSquirrel to convert the TTF file to WOFF and WOFF2 files.
The WOFF file is to be used by IE users, and WOFF2 in all other browsers.
I used ...