Giter Site home page Giter Site logo

markdownavalonia's People

Contributors

dayandnight2018 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

markdownavalonia's Issues

Italic render

Hi, can you test a bellow xaml to check render a text as italic.

I received issue about italic from @dayAndnight2018.
I tried to reproduce it, however I can't.

I couldn't pinpoint the problem, but I think Avalonia itself may not be able to draw italics in your environment.
If TextBlock (not only CTextBlock and MarkdownScrollViewer) can't render as italic, I think it is better way to consult with Avalonia team.

Thanks to read off-topic issue.

<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

        xmlns:ctxt="clr-namespace:ColorTextBlock.Avalonia;assembly=ColorTextBlock.Avalonia"
        xmlns:md="clr-namespace:Markdown.Avalonia;assembly=Markdown.Avalonia"

        mc:Ignorable="d" d:DesignWidth="200" d:DesignHeight="150"
        x:Class="ItalicTest.MainWindow"
        Title="ItalicTest">

  <StackPanel>

    <TextBlock FontFamily="Microsoft YaHei,Simsun,苹方-简,宋体-简" FontStyle="Italic">
      Hello, 你好
    </TextBlock>

    <ctxt:CTextBlock FontFamily="Microsoft YaHei,Simsun,苹方-简,宋体-简" FontStyle="Italic">
      <ctxt:CRun>
        Hello, 你好
      </ctxt:CRun>
    </ctxt:CTextBlock>

    <md:MarkdownScrollViewer>
      <md:MarkdownScrollViewer.Styles>
        <Style Selector="ctxt|CTextBlock">
          <Setter Property="FontFamily" Value="Microsoft YaHei,Simsun,苹方-简,宋体-简"/>
          <Setter Property="FontStyle" Value="Italic"/>
        </Style>
      </md:MarkdownScrollViewer.Styles>
      *Hello, 你好*
    </md:MarkdownScrollViewer>
  </StackPanel>

</Window>

full project "ItalicTest.zip"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.