locked
My Asp.net Label Font To Show In All Device And Browser RRS feed

  • Question

  • User-807418713 posted

    Hello

    This Is My Code I used this font https://fontmeme.com/fonts/mrv-code39extma-font/

    <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Label_Page.aspx.cs" Inherits="Label_Page" Title="Untitled Page" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
      <asp:Label ID="Label10" runat="server" Font-Size="15px" Font-Names="MRV Code39extMA" Text='AS-001-1122'></asp:Label>
    </asp:Content>
    
    

    I Installed This mrv-code39extma Font In My Computer Then It Showing Perfect But If i Access Page In Mobile Then Its Not Showing So How To Access This Font In All device.

    Thank You

    Thursday, December 27, 2018 11:58 AM

All replies

  • User465171450 posted

    It doesn't matter if the font is on your computer, it has to be on their computer. If it's not, it defaults to whatever the particular browser and platform says is the default. There are fonts available now that work with the browser much the same way that a stylesheet does. Google Web Fonts and you should find a number that will be available cross-platform so long as you include the references. Google has a number of them available for free at: https://fonts.google.com/

    Thursday, December 27, 2018 12:46 PM
  • User-807418713 posted

    Hello Markfitzme

    Thanks for your reply

    Can you give me any font that is similar to this barcode https://fontmeme.com/fonts/mrv-code39extma-font/

    Thanks lot

    Thursday, December 27, 2018 12:53 PM
  • User-807418713 posted

    Hello

    I used this but in IE it works Fine 

    But In chrome its not showing whats the issue, what need to change in my aspx page

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="tt.aspx.cs" Inherits="tt" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
     
    
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Libre+Barcode+39+Extended+Text">
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <asp:Label ID="Label10" runat="server" Font-Size="50px" Height="190px" Font-Names="Libre Barcode 39 Extended Text" Text='ASP-11045'></asp:Label>
            <br />
           </div>
        </form>
    </body>
    </html>

    Thursday, December 27, 2018 3:02 PM
  • User-271186128 posted

    Hi Gopi.MCA,

    I have create a sample using your code, it seems that everything works well.

    The result as below:

    Try to re-test it on your side, if still not working, please try to use F12 developer tools to check the CSS style.

    Best regards,
    Dillion

    Friday, December 28, 2018 1:49 AM
  • User-807418713 posted

    Hello Zhi Lv

    Thanks For Your Reply

    This is  my complete code 

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="tt.aspx.cs" Inherits="tt" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Untitled Page</title>
     
    
    <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Libre+Barcode+39+Extended+Text">
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
          <asp:Label ID="Label10" runat="server" Font-Size="50px" Height="190px" Font-Names="Libre Barcode 39 Extended Text" Text='ASP-11045'></asp:Label>
            <br />
           </div>
        </form>
    </body>
    </html>
    

    In Internet explore it showing barcode perfect but in chrome its not showing whats the issue

    see the screenshot

    Thursday, January 3, 2019 10:29 AM
  • User-807418713 posted

    Hello

    Any One Help Me And Let Me Know Why Its Not Showing In Other Browser?

    Thanks

    Tuesday, January 15, 2019 12:35 PM