Click here to Skip to main content
15,900,461 members
Everything / Font

Font

font

Great Reads

by Iman Abdollahzadeh
TrueType implementation from scratch
by Marco Bertschi
A short description of the Code 39 Barcode font by Matthew Welch (and how to use it)
by VyReN
Using VB.NET's RichTextBox and fitting all text into the box
by ASP.NET Community
In this post you will see how can we change the font size on the fly. Style.css.bodyContent14{FONT-SIZE: 13px; LINE-HEIGHT: 14px}

Latest Articles

by Mohammad Elsheimy
Porting Windows Fonts to Linux
by ToughDev
How to interface Nokia 3510i and 5110 LCD with PIC Microcontroller
by ToughDev
Experiment with ST7920 128×64 graphical LCD on PIC
by Iman Abdollahzadeh
TrueType implementation from scratch

All Articles

Sort by Updated

Font 

13 Nov 2023 by zhivot
I am converting between GDI (Win32 API) and different drawing format that also supports text and glyph rotation. Text output in GDI is specified with a reference point (and vertical alignment), but it is easy to take that into account when the...
6 Jul 2023 by Paramu1973
Hi, Iam using VS2015.My project running good, but one of my user system having display setting 1366x768 having problem while I preview my RDLC Report viewed by ReportViewer, the font showing on report is BLUR [ Stretched manner]. On that same system when I change the display setting to 1024x768...
6 Jul 2023 by Paramu1973
I format my system, then this issue has fixed!
8 May 2023 by ToughDev
How to interface Nokia 3510i and 5110 LCD with PIC Microcontroller
7 May 2023 by ToughDev
Experiment with ST7920 128×64 graphical LCD on PIC
18 Jul 2022 by Mathsquare
Richtextbox1.f...
12 Oct 2021 by Richard MacCutchan
Fonts in PDF files | How to embed or subset a font in a PDF[^]
13 Sep 2021 by mojtabahakimian
I use C# WPF and Stimulsoft I want to send path my font file was embedded to my report when need to show I have embedded font in my WPF Project and I use it like this : in XAML :
13 Sep 2021 by Richard Deeming
The AddFontFile method expects the path of a physical file on disk. You cannot pass in a pack: URI, because it doesn't understand that format. And you cannot just call .ToString() on a Stream, since that won't produce any meaningful information. ...
30 Aug 2021 by sahnoune_khaled
I am trying to make a program which extracts the text from a PDF document PDF documents contain ARABIC text written by different types of FONT when I extract the text it works with some files and others not it gives me ambiguous Text I am using...
25 Feb 2021 by Rabiî Ab
I want to change the default Arabic font of my blog text by importing other fonts using this code in Advanced>>Add css: @import url (http://fonts.googleapis.com/earlyaccess/droidarabickufi.css) body {font-family: “Droid Arabic Kufi”, serif;} ...
25 Feb 2021 by W Balboos, GHB
What you're doing should, in principal, work. What can go wrong? - Is the font loading before the page renders? It takes time and I've seen it fail for this reason, myself. - Ia the import path exactly right? - Is the name you gave in the...
8 Jan 2021 by Iman Abdollahzadeh
TrueType implementation from scratch
19 Apr 2020 by phil.o
You can define a CSS class with font parameters to be applied, and apply that class programmatically to corresponding element. .custom { font-family: Consolas, Courier, monospace; font-size: small; } ...
19 Apr 2020 by Mark Rene Jensen
// FHS Tumblr Online Counter var height = '56'; var fhs = document.createElement('script');var fhs_id = "5593850"; var ref = (''+document.referrer+'');var pn = window.location;var w_h = window.screen.width + " x "...
17 Mar 2020 by Member 13225610
For all those who are facing the same issue, posting the link from where I got the solution - Installing Fonts Without Registering Them in the R... - Community[^]
3 Mar 2020 by LeisureBamboo
Randomly read any embedded_mono_matrix in TTF file, export it to bitmap files (in package)
1 Mar 2020 by RickZeeland
You probably need to use the Graphics.Drawstring() method to be able to use these fonts, see example here: How to: Create a Private Font Collection - Windows Forms | Microsoft Docs[^] Also see: Advanced Typography | Colors, Fonts, and Text[^]
1 Mar 2020 by db211086004
I've downloaded several custom fonts. When the user presses a button I want the font of the text in a rich-textbox to change. But the fonts themselves don't change but the font size does. I also don't get any errors. When I install the font on my...
24 Jan 2020 by OriginalGriff
See here: Packaging Fonts with Applications - WPF | Microsoft Docs[^] If that doesn't solve it, talk to Installshield.
24 Jan 2020 by Member 13225610
Hi, We are using InstallShield 2016 for developing our msi. We have an issue wherein, ttf fonts carried by our msi are getting installed in system. We do not want fonts to get registered. We simply want to carry them. But since they get registered, other applications like Outlook, skype, chrome...
29 Jul 2019 by Gerry Schmitz
Check the "Display Settings" in Windows Settings / Control Panel. *** Depending on the OS ***, they may have changed the DPI settings and / or "scaling".
16 May 2019 by RickZeeland
Maybe these will get you started: Character Map in WPF[^] GitHub - SixLabors/Fonts: Font loading and drawing library.[^]
16 May 2019 by Smeezy
Before I even attempt to begin this project, I'd like to know if it's possible. I would like to be able to list the contents of a specific font file, including the accompanying character map symbols for that file, in separate listboxes. For example, all numbers in one box, all letters in...
16 May 2019 by OriginalGriff
Quote: For example, all numbers in one box, all letters in another and finally, symbols in another. Well ... no. The problem is that fonts aren't specifically "character" related, in the sense that "'0' to '9' are numbers", "'A' to 'Z' and 'a' to 'z' are letters" and so on. A font just...
9 Aug 2018 by Member 11416681
I have a Main Report and a Sub Report. I want to change the Font Name to Kruti Dev 011 in the Sub Report based on an Expression like IIF(FIELDS!T_E_H.Value="H",Kruti Dev 011,Arial) This gives no error nut no effect there in Sub Report. It shows the text in Arial Font even if the...
16 Mar 2018 by Richard Deeming
As discussed in the comments, installing new fonts on a Windows server typically requires a restart. Without a restart, only the current session is notified of the new font. Other sessions, such as ASP.NET, are not notified, and will not be able to use the new font. It is sometimes possible to...
13 Mar 2018 by DanielEvansJr
I've searched in vain, off and on for several months, and still haven't found anyone else with this issue. Resolutions to similar issues aren't working for me or simply don't apply. I have a web application written in Visual Studio.Net 2012 (C#/ASP.Net). The application pulls a small set of...
5 Feb 2018 by NekoNao
I have an ASP.Net program which shows crystal report but the problem is showing if barcode. The barcode won't show unless the font is installed on the client's PC. Is there a way to show the barcode without installing it? What I have tried: I've tried passing byte into datatable with column...
22 Jan 2018 by Member 13637011
Hi guys, I've been trying to load a hosted font (for all clients but Outlook) into my email template but it does not seem to work. What I have tried: @media screen{ @font-face{ font-family: 'Archive'; font-style: normal; ...
22 Jan 2018 by OriginalGriff
Some Email systems do allow for web fonts by embedding the font directly in the HTML: The Ultimate Guide to Web Fonts in Email—Litmus Software, Inc.[^]
21 Aug 2017 by Member 12690141
Hi! I found FON file description here; http://falloutmods.wikia.com/wiki/FON_File_Format There's written structure of FON file, but not enough. As first - there is written how are character data stored - but only for characters 1 byte wide. How are stored 2 bytes or more wide characters? ...
20 Aug 2017 by Dave Kreskowiak
Just looking at the format you linked to, FON files are a simplistic, raster format and don't appear to support more than one byte per character. In other words, there are no characters other than 0 to 255.
14 Aug 2017 by BillWoodruff
I've used this in the past; it handles the case of all-selected in the same way as none-selected. And, you can, optionally, reset the selection after the Font change. private void SetFont(RichTextBox rtbx, bool restoreselection = false) { int selStart = rtbx.SelectionStart; int selLength...
14 Aug 2017 by DreyerVorster
I'm working on a text editor and the one button i use is to change the font type and size of all the text in in a richtextbox and if you select something only that text should change with the fontDialog..The code i have at the moment i can select text and change the selected text's style and...
14 Aug 2017 by Leo Chapiro
You can select all the text before changing SelectedFont: rtbText.SelectAll(); rtbText.SelectionFont = fontDialog1.Font;
28 Jun 2017 by V. Subhash
A simple Java class to enumerate fonts in your systems and create a text samples document
29 Jan 2017 by Joan M
Hi,I know this is a very vague and generic question, sorry for that.I'm updating a web page and I'm trying to find out why some fonts are looking good in my phone and why other fonts are looking very small.In all the desktop browsers I've tested (chrome, firefox, edge, ie, opera)...
29 Jan 2017 by Peter Leow
You can't expect a desktop-fitting page to show as it is and looks right on smaller screen devices such as mobile phones, this is the area for HTML Responsive Web Design[^] More reading:1. The Three R’s of Responsive Web Design[^] 2. Responsive Web Design Basics  |  Web  |  Google...
27 Oct 2016 by Rajib13
I am trying to write Bengali and Hindi text using iTextSharp, in normal pdfDocument of an A4size page and in a pdfTable(cell of a pdf table). In everycase except when I use 'Phrase' to write the text, only the Hindi text (\u0915…) is correctly written but Bengali text(\u0985\0986) are missing...
4 Oct 2016 by Lijo Sebastian
Hi friends, Please help me to provide a good solution for this. How to install a font permanently in your system programmatically, using C#. I want the font immediately available in Windows Fonts folder, without system reboot. I googled a lot, but no luck. I found AddFontResource...
4 Sep 2016 by Member 9983063
Hello guys! i want to know how to change forecolor of datagridview last row.What I have tried:textBox2.Text = Add_Food_Inventory.setaluefortext204; dateTimePicker1.Text = System.DateTime.Now.ToString(); dateTimePicker2.Text =...
4 Sep 2016 by Karthik_Mahalingam
tryif (dataGridView1.Rows.Count > 0) dataGridView1.Rows[dataGridView1.Rows.Count-1].DefaultCellStyle.BackColor = Color.Red;
3 Sep 2016 by BillWoodruff
You can set the (entire) Row BackColor or ForeColor directly:YourRow.DefaultCellStyle.ForeColor = Color.Red;You can set a particular Cell's colors by:YourCell.Style.ForeColor = Color.Red;This thread on StackOverFlow contains a number of valuable examples of working with DataGridView Color...
22 Aug 2016 by GoodJuJu
I have a ComboBox on my application which displays a watermark 'Search...'The watermark is added using CB_SETCUEBANNER: 'Private Const EM_SETCUEBANNER As Integer = &H1501 (TextBox) Private Const CB_SETCUEBANNER As Integer = &H1703 '(ComboBox) ...
3 Aug 2016 by RossMW
You are trying to change the colour of an int I not the listbox item.Use owner-draw mode of the ListBox. Select your ListBox in design-mode and change DrawMode property to OwnerDrawFixed. Now attach a handler to DrawItem event and then use Graphics class's methods to draw your string in any...
3 Aug 2016 by Member 9983063
how to change font color of listbox selected items C# on button clickWhat I have tried:for (int i = 0; i
3 Aug 2016 by Mr.TMG
Hi, I have a user control that is designed to display Names. Inside the control there is a label that should always remain centered and can have an unknown length of text.Are there any clever methods out there for adjusting the font size of the label such that it fills the user control as...
3 Aug 2016 by Stephen Soper
I got this working without using a panel, just a label. I call this code when the text changes or the size of the label changes (I have it set to anchor on all sides). In my case, the text is simply a number that changes every second for near real time visual updates. I hope this helps the...
31 Jul 2016 by Hein Pauwelyn
How you could use icons in your application there are 2 possible ways: images and icon font (Font Awesome).
24 Jul 2016 by Member 12620249
hithis is my activity protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.word); et =(EditText)findViewById(R.id.et); btnz =(Button)findViewById(R.id.btnz); btncopy...
24 Jul 2016 by Richard MacCutchan
You need to save all information relating to the item that you are putting on the clipboard. This is described in the section titled "Implementing Copy or Drag" at ClipData | Android Developers[^].
7 Jul 2016 by Member 9983063
Hello Guys! i am facing a issue in my C# project and that issue is How to change listbox selected item forecolor/backcolor on button click in c#Please help me sort out this issueThanksWhat I have tried:i have also tried drawitem event,fontdialog ,color dialog
7 Jul 2016 by SRS(The Coder)
Here is mine implemented the same using jQuery with RegisterClientScriptBlock And on the server side click event handler for the button is as...
7 Jul 2016 by Karthik_Mahalingam
try this private void Form1_Load(object sender, EventArgs e) { listBox1.DrawMode = DrawMode.OwnerDrawFixed; listBox1.SelectionMode = SelectionMode.MultiExtended; listBox1.DrawItem += new DrawItemEventHandler(listBox_DrawItem); ...
7 Jul 2016 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Refer - c# - how to change background color of selected item in a listbox programmatically? - Stack Overflow[^]
2 Apr 2016 by Katiyar S.
Hello Experts.I want to use hindi font in some of my Pages on a ASP.NET Site. I have that font on my machine. that may not be available in general. how can i pack my font with the website, so that any user who uses the site sees the text in same font. even if i define that font for any...
18 Feb 2016 by sachin ghute
I have use this link for website font-family,when launch website in a local host and lost internet connection this font link is not...
11 Jan 2016 by Sergey Alexandrovich Kryukov
I really sympathize with your efforts; you are trying to study despite of pretty difficult situation and tough schedules.I would like to give you just a few ideas.First of all, you can do a lot of development and study without your own Web site. As you mentioned "go to back end and upload...
11 Jan 2016 by AnaBanana07
Hi :),I'd really, really, really, like to know how I could check out how unique fonts that are on other websites would look on my site by just temporarily trying them out on my site with "Inspect Element". I've gotten as far as being able to identify the name of the font on the website...
11 Jan 2016 by Richard Deeming
Fix your @font-face declaration by removing the local path (D:\UI\fonts\digital-7-webfont.eot) from the first line:@font-face { font-family: Linearicons-Free; src: url(https://cdn.linearicons.com/free/1.0.0/Linearicons-Free.eot); src:...
11 Jan 2016 by Torakami
Hi , For some reason some fonts are not generating properly on firefox so my menus are not displaying font icons .I am looking for bootstrap type icon alternative which i can use insted of font icons
7 Jan 2016 by Richard MacCutchan
You can often find the answer just by reading the documentation for the class you are using: Clipboard.SetText Method (String, TextDataFormat) (System.Windows.Forms)[^].
6 Jan 2016 by Member 12248948
Hi,I want to copy text and text font from my application to ms word application using Ctrl+C and Ctrl+V.When i press Cntl+C i have done my coding Clipboard.SetText(textbox1.text) in my wpf application.when i'm press Ctrl+V in ms word it only pasting text not text font.If any one know...
14 Nov 2015 by Biju P Dais
Hello,I am new to c#. My requirement is to extract the contents of a pdf file. Along with the contents I need to extract the font size and font style of the contents.I have succeeded in extracting the contents and formatting information, iText cannot identify the space.Below is an...
18 Oct 2015 by Umesh AP
Hi,I want to use some custom font for my asp.net web application. I am installing font programmatically using ‘AddFontResource’. This works perfectly when I run using Visual Studio. The font installed successfully & shows up in MS Word font list. But when I publish website on IIS, my code...
21 Sep 2015 by Jochen Arndt
You are using ChooseFont to select the font. So you will get what you select there. If you select a fixed width font like Courier, setting lfPitchAndFamily afterwards to 2 will have no effect.If you want only proprtional fonts to be listed, set lf.lfPitchAndFamily to 2 and add...
21 Sep 2015 by codeprojectddx
As I know,everyone can create a font by using the function CreateFont .But the problem is I cannot get a font that I really want.For example ,I create a log font using the LOGFONT and set lfPitchAndFamily field with VARIABLE_PITCH ,so every glyph in the font should be not same width with each...
20 Sep 2015 by Mehdi Gholam
What I want, what I really really want...Your question is not really informative, and we can't know what you want.Try learning how to use the font creation tools first.
5 Jul 2015 by Member 10964859
Hi folksHow can I get the font size of a selected text on a richtextbox in VB.NET? I was trying something like this:RichTextBox1.Select(0, 1) Dim bf As String = RichTextBox1.SelectionFont.Size.ToStringThanks!
1 Jul 2015 by Rasoul Takalloo
Note that your font source must add to Resource of projectFile.Copy("yourfont.ttf", Path.Combine("C:\\Windows", "Fonts" + "yourfont.ttf"),true);RegistryKey fontkey= Microsoft.Win32.Registry.LocalMachine.CreateSubKey(@"SOFTWARE\Microsoft\Windows...
30 Jun 2015 by OriginalGriff
The first thing to do is check the return value.The documentation[^] says: If the function succeeds, the return value specifies the number of fonts added.If the function fails, the return value is zero. No extended error information is available.So start by looking to see if it returns...
30 Jun 2015 by Rasoul Takalloo
Hello,I want install my font on windows by c# coding. I use below code to do this, it run without error but i can't see my font in c:/windows/fonts.What should i do?My font stored in Resource of project.My code:[DllImport("gdi32.dll", EntryPoint = "AddFontResourceW", SetLastError =...
28 Jun 2015 by NightWizzard
Simply add a single code module to add instant design capabilities to all windows forms of your application!
18 Jun 2015 by Sergey Alexandrovich Kryukov
It's just that PDF default encoding is stupid CP-1252. (A shame, isn't it?) You need to specify that you need to use Unicode.Please see the answer here: http://stackoverflow.com/questions/10329863/display-unicode-characters-in-converting-html-to-pdf[^].Ви посакувам успех!—SA
18 Jun 2015 by Member 11770025
DataTable dt = new DataTable(); BaseFont baseFont = BaseFont.CreateFont(Environment.GetEnvironmentVariable("windir") + @"\fonts\arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED); iTextSharp.text.Font font = new iTextSharp.text.Font(baseFont, 10, 0); ...
13 Jun 2015 by Mehdi Gholam
Read these :https://code.google.com/p/android/issues/detail?id=34932[^]http://stackoverflow.com/questions/16412549/android-calendarview-font-size[^]
10 Jun 2015 by javachessgui
I want to include fonts with my JavaFX application in the jar executable.font_stream = Javachessgui2.class.getResourceAsStream("resources/fonts/"+current_style.font); chess_font=Font.loadFont(font_stream, piece_size);This code works for certain fonts, but not all TTF...
11 May 2015 by barneyman
(comment promoted to answer)sounds like a GDI leak :)you ARE re-selecting the old font back into the DC before you destroy it?
10 May 2015 by Member 10946506
This is a problem I have beating my head against for 6 months. I'm hoping that someone else has encountered this issue and found either a solution or a workaround. I am using VS 2010 C++ Express to develop W32 apps on a PC running 64-bit Win 7 Home edition. A chronic problem I encounter...
7 Apr 2015 by Bacanzela
I have a gridview with five columns. from the second gridview cells I have a column called font size which I have used combo-box and give static numbers like (2.4.6.8.10).The purpose of font size is, when you select any number from the combo box, it must change the font size text for that...
20 Mar 2015 by Amit Singh Baghel
A tip to fulfill the requirement of getting the Hindi Inscript Typing on your website without using any external software
24 Feb 2015 by Member 11474066
I just don't know where to insert the code.And which code.
23 Feb 2015 by Member 11474066
Hi there, does any of you have experiences with Fontello, Font Awesome or sites like 'em?I want to insert some cool icons in my navigation bar.HTML -> http://pastebin.com/ybAm9PyTCSS -> http://pastebin.com/5P7tPhi8THIS THE SITE -> http://puu.sh/g9Fv2/1424ac99b3.png
14 Feb 2015 by Sergey Alexandrovich Kryukov
Despite of my comment to the question, I can see that there is something you are doing wrong. Sorry, I'm not going to fix your discrepancy between IE and other browsers. First, I don't want to enable IE for it (I think it sucks, even the later versions, so I never use it). More importantly, at...
14 Feb 2015 by Ankit Gada
Here : http://thunderstorm999.byethost9.com/Observe the footer text.It is not the same in IE as in the Chrome and Firefox browser.My font is not displaying as it should in IE. Also due to this the alignment in IE is not the same as it is in Firefox and Chrome.Also the layout appears a bit...
5 Jan 2015 by prasad2266
i need to take my data ( in hindi language) to access as a normal english text in my java application..The data is stored in MySQL database.but i am able t ofetch the data ...but not able to display in its original font/languageany suggestion would be more than welcome. :)
31 Dec 2014 by radnix
Greetings, I have a C# windows form application with text and the font code is apparently auto generated and placed in the Form.Designer.cs file. I've been told that I need to ensure the font is disposed correctly but since it is auto generated code, I am unsure as to how to go about it. So, I...
30 Dec 2014 by Snesh Prajapati
There is a blog post at below link discussing similar issue:http://blogs.msdn.com/b/ploeh/archive/2006/08/10/howtodisposemembersfromforms.aspx[^]It describes how to dispose Members From Forms. In the comments section of that post Author has provided below code with explanation.public...
10 Nov 2014 by Mathew Soji
refer below , similar issue.http://stackoverflow.com/questions/26842997/why-extra-space-with-letter-w-with-font-familyarial-and-font-size11px[^]
10 Nov 2014 by bitsmax
In IE 11 , the letter "w" comes with extra space. i.e. : "Password" becomes "Passw ord"This only happens when font-family = arial and font-size = 11px.body, table, input, select, textarea { font: 11px normal Arial, Helvetica, sans-serif; }anybody know the reason behind it ?
18 Sep 2014 by Stephen Hewison
I found the solution.IE will not work with font-face for subsequent requests within the same session if the caching is turned off.The font folder hadCache-Control: no-cacheExpires: -1Pragma: no-cacheThis breaks font-face in IE beyond all but the original request.This is...
18 Sep 2014 by Stephen Hewison
Hi,We have the a website which implements a custom font face.This work every time in IE on our test server. When we move to production it works but only the first time it loads the page. If I delete my temp internet file and reload the page it will work again.I've used font...
2 Sep 2014 by Member 10996886
ummm ..........................................................................................
1 Sep 2014 by Sergey Alexandrovich Kryukov
Andrey Bushman asked:But what about BIOS? It works before the OS and displays the text too. BIOS knows nothing about the GDI, as I understand. And... How GDI does it?BIOS has its own fonts. More exactly, the portion of the BIOS stored in each graphics card. The fonts can be modified by filling...
1 Sep 2014 by CPallini
According to this page[^], at lest on system having the Windows NT architecture, fonts are handled by the GDI, in the kernel.
1 Sep 2014 by Andrey Bushman
ASCII, OEM, ANSI, and Unicode tables exist. Right me, if I am mistaken: as I understand, these tables live "on the paper" only, i.e. this are agreements which shall be implemented in the fonts later.When the computer loads, it writes some text on the display. Also it writes the text in the...
25 Jul 2014 by JamesHurst
Walks through the creation of an on-screen virtual keyboard for entering non-ASCII chars