<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QGlyphRun Class Reference ## [[QtGui](index.htm) module] 該QGlyphRun類提供了直接訪問字體內部字形。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QGlyphRun?other)` * `clear (self)` * `list-of-int glyphIndexes (self)` * `bool overline (self)` * `list-of-QPointF positions (self)` * `QRawFont rawFont (self)` * `setGlyphIndexes (self, list-of-int?glyphIndexes)` * `setOverline (self, bool?overline)` * `setPositions (self, list-of-QPointF?positions)` * `setRawFont (self, QRawFont?rawFont)` * `setStrikeOut (self, bool?strikeOut)` * `setUnderline (self, bool?underline)` * `bool strikeOut (self)` * `bool underline (self)` ### Special Methods * `bool __eq__ (self, QGlyphRun?other)` * `bool __ne__ (self, QGlyphRun?other)` * * * ## Detailed Description 該QGlyphRun類提供了直接訪問字體內部字形。 當Qt的顯示文本的字符串以Unicode編碼,它會先轉換成Unicode的點到字形索引的列表,并基于一種或多種字體位置的列表。文本的Unicode表示和[QFont](qfont.html)對象將在這種情況下作為一個方便的抽象,隱藏的顯示在屏幕上的文本時,什么實際發生的細節。例如,通過在文本實際到達屏幕的時候,它可以由一組字體除了由用戶指定的一個表示,例如在情況下,最初選擇的字體不支持所有包含在文本的書寫系統。 在某些情況下,它可以作為一個應用程序開發人員有更多的低級別的控制權而在一個特定的字體字形繪制到屏幕上是有用的。這可能是例如在使用外部字體引擎和文本整形連同Qt應用程序的情況。 QGlyphRun提供一個接口,需要得到的屏幕上的文本的原始數據。它包含的字形索引,每個字形的位置和字體的列表。 它是用戶的責任,以確保所選的字體實際上包含所提供的字形索引。 [QTextLayout.glyphRuns](qtextlayout.html#glyphRuns)()或[QTextFragment.glyphRuns](qtextfragment.html#glyphRuns)( )可用于Unicode編碼的文本轉換成QGlyphRun對象的列表,并[QPainter.drawGlyphRun](qpainter.html#drawGlyphRun)( )可以用來繪制字形。 **Note:**請注意[QRawFont](qrawfont.html)被認為是局部的,其中它被構造的線程。這反過來意味著一個新的[QRawFont](qrawfont.html)將要被創建并在QGlyphRun設置,如果它被移動到一個不同的線程。如果QGlyphRun包含引用[QRawFont](qrawfont.html)從一個不同的線程以外的線程的電流,它也不可能使用以繪制字形一[QPainter](qpainter.html)作為[QRawFont](qrawfont.html)被視為無效,無法在這種情況下。 * * * ## Method Documentation ``` QGlyphRun.__init__ (self) ``` 構造一個空[QGlyphRun](qglyphrun.html)對象。 ``` QGlyphRun.__init__ (self, QGlyphRun?other) ``` 構造一個[QGlyphRun](qglyphrun.html)對象,這是一個拷貝_other_。 ``` QGlyphRun.clear (self) ``` 清除所有數據在[QGlyphRun](qglyphrun.html)對象。 ``` list-of-int QGlyphRun.glyphIndexes (self) ``` 返回該字形索引此[QGlyphRun](qglyphrun.html)對象。 **See also** [setGlyphIndexes](qglyphrun.html#setGlyphIndexes)()和[setPositions](qglyphrun.html#setPositions)( ) 。 ``` bool QGlyphRun.overline (self) ``` 返回True如果[QGlyphRun](qglyphrun.html)應涂以劃線的裝飾。 **See also** [setOverline](qglyphrun.html#setOverline)( ) 。 ``` list-of-QPointF QGlyphRun.positions (self) ``` 返回基線每個字形的這套字形索引的邊緣的位置。 **See also** [setPositions](qglyphrun.html#setPositions)( ) 。 ``` QRawFont QGlyphRun.rawFont (self) ``` [](qrawfont.html) [返回選定為這個字體](qrawfont.html)[QGlyphRun](qglyphrun.html)對象。 **See also** [setRawFont](qglyphrun.html#setRawFont)( ) 。 ``` QGlyphRun.setGlyphIndexes (self, list-of-int?glyphIndexes) ``` 設置此標志符號索引[QGlyphRun](qglyphrun.html)反對_glyphIndexes_。字形索引必須是有效的選擇的字體。 **See also** [glyphIndexes](qglyphrun.html#glyphIndexes)( ) 。 ``` QGlyphRun.setOverline (self, bool?overline) ``` 表明這[QGlyphRun](qglyphrun.html)應涂以劃線的裝飾,如果_overline_是真實的。否則,[QGlyphRun](qglyphrun.html)應涂有沒有劃線的裝飾。 **See also** [overline](qglyphrun.html#overline)( ) 。 ``` QGlyphRun.setPositions (self, list-of-QPointF?positions) ``` 設置基線每個字形的邊緣在這套字形索引的位置,以_positions_。 **See also** [positions](qglyphrun.html#positions)( ) 。 ``` QGlyphRun.setRawFont (self, QRawFont?rawFont) ``` 設置由指定的字體_rawFont_要用于查找的字形索引的字體。 **See also** [rawFont](qglyphrun.html#rawFont)()和[setGlyphIndexes](qglyphrun.html#setGlyphIndexes)( ) 。 ``` QGlyphRun.setStrikeOut (self, bool?strikeOut) ``` 表明這[QGlyphRun](qglyphrun.html)應涂用重拳出擊,如果裝修_strikeOut_是真實的。否則,[QGlyphRun](qglyphrun.html)應該涂上不重拳出擊裝修。 **See also** [strikeOut](qglyphrun.html#strikeOut)( ) 。 ``` QGlyphRun.setUnderline (self, bool?underline) ``` 表明這[QGlyphRun](qglyphrun.html)應涂帶下劃線的裝飾,如果_underline_是真實的。否則,[QGlyphRun](qglyphrun.html)應涂上無下劃線裝飾。 **See also** [underline](qglyphrun.html#underline)( ) 。 ``` bool QGlyphRun.strikeOut (self) ``` 返回True如果[QGlyphRun](qglyphrun.html)應涂以重拳出擊的裝飾。 **See also** [setStrikeOut](qglyphrun.html#setStrikeOut)( ) 。 ``` bool QGlyphRun.underline (self) ``` 返回True如果[QGlyphRun](qglyphrun.html)應涂帶下劃線的裝飾。 **See also** [setUnderline](qglyphrun.html#setUnderline)( ) 。 ``` bool QGlyphRun.__eq__ (self, QGlyphRun?other) ``` ``` bool QGlyphRun.__ne__ (self, QGlyphRun?other) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看