aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.h
AgeCommit message (Collapse)AuthorFilesLines
2024-08-15Add SCI_STYLESETSTRETCH to support condensed and expanded text styles.Neil1-0/+1
2022-10-04Feature [feature-requests:#1453] Added SCI_STYLESETINVISIBLEREPRESENTATION toFerdinand Oeinck1-0/+1
make it easier to edit around invisible text. This also allows representing long lexemes with a single character to provide a summarized view.
2021-09-28Fix bad layout of monospace text on Cocoa by adding separate fieldNeil1-0/+1
monospaceCharacterWidth for width of monospaced characters.
2021-09-15Document lifetime of FontSpecification::fontName.Neil1-0/+1
2021-09-12Make negative settings for extra ascent and descent safer by ensuring calculatedNeil1-2/+2
ascent and thus line height is at least 1 pixel. Allow 1 point font minimum instead of 2 as this may help with document maps. Document negative extra ascent and descent. Use XYPOSITION for ascent and descent for more coherent types and fewer casts but floor the values when retrieving from Surface so behaviour is unchanged.
2021-08-31Simplify Style types FontSpecification, FontMeasurements, Style, FontRealised.Neil1-32/+14
Rely on shared_ptr and use standard copying where possible. Check extraFontFlag and checkMonospaced for FontSpecification comparisons.
2021-07-31Implement StyleSetCheckMonospaced.Neil1-0/+2
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-10/+10
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-3/+3
will be published in externally visible header.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-3/+3
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-03-19Switch enum to enum class.Neil1-3/+3
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-16/+2
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2020-09-18Fix building with Xcode 12 by defining move constructors for FontAlias, Style,Neil1-3/+3
and PositionCacheEntry.
2020-04-07Use noexcept and const where possible.Neil1-5/+5
2019-01-15Fix use of "0" for nulls and mark methods "noexcept" where simple.Neil1-10/+10
2018-05-18Can use const now that Font::GetID is const.Neil1-1/+1
2018-05-14Replace 0 with nullptr.Neil1-1/+1
2018-04-28Delete standard functions on classes where there could be attempts to copy.Neil1-1/+5
2018-04-28Rename method to avoid confusion between base and derived classes.Neil1-1/+1
2018-04-14Make some changes recommended by clang-tidy.Neil Hodgson1-1/+1
2017-09-11The Scintilla namespace is always active for internal symbols and for the lexerNeil1-4/+0
interfaces ILexer4 and IDocument.
2017-04-19Use =delete for unwanted functions.Neil1-2/+2
2017-04-12For speed, store height of capital letters in FontMeasurements so notNeil1-0/+1
recalculated for every character blob.
2017-04-09Modernise ViewStyle with vector, unique_ptr, any_of, and method deletion.Neil1-2/+2
2015-06-30Added SC_CASE_CAMEL to the case mode style attribute.Neil1-1/+1
2014-06-23Updated comment to match change 5151.Neil1-1/+1
2014-06-22Drawing and measuring should not change ViewStyle which is set by the containerNeil1-1/+1
so mark ViewStyle parameters as const. Provide a FontAlias copy constructor and use it to work around non-const Font arguments to Surface when sourced from const ViewStyle.
2013-05-02Replacing raw pointers and allocations with std::vector and std::map.nyamatongwe1-2/+3
2012-03-03Remove unused variables. Bug #3494744. From Marko Njezic.nyamatongwe1-2/+0
2012-03-01Bug #3494492. Change aveCharWidth in FontMeasurements to actually storenyamatongwe1-1/+1
fractional width. This change complements change set 3994. Make WidthText() and AverageCharWidth() actually return fractional widths under Direct2D. From Marko Njezic.
2011-12-13Allow non-integral space width. From Jason Haslam.nyamatongwe1-1/+1
2011-09-25Palette support removed.nyamatongwe1-2/+2
2011-08-07Implement APIs for fractional font sizes and a range of weights.nyamatongwe1-4/+4
2011-03-30Encapsulate the aliasing of Font IDs.nyamatongwe1-0/+1
2011-03-30Optimize font use by only allocating platform font resources for unique fontsnyamatongwe1-17/+44
and using aliases of these in the Style objects. Font measurement is also performed once for each unique font and the results copied into each style. No change is needed in callers. On PLAT_WX, the font ascent is cached in the Font object when Ascent is called but this is not copied into the aliases as ascent is protected. Therefore the code that copies the FontID into the alias also calls Ascent to ensure the ascent value is cached.
2010-04-30Made compatible with clang.nyamatongwe1-1/+1
2009-11-02Added setting for font quality to allow application to choose anti-aliased,nyamatongwe1-1/+1
non-anti-aliased or lcd-optimized text.
2007-06-01integrate OS X support for scintilla. a big patch with a little commit ↵scaraveo1-0/+8
message :) - now uses namespaces (optionally for non-os x) to avoid conflicts with OS X libraries - several fixes in the OS X layer since the branch was commited in 2005 - used in Komodo since 2005, so pretty stable
2004-03-29Patch from Robin Dunn to pass an extra flag down tonyamatongwe1-3/+3
font rendering to allow a platform-specific tweak.
2003-03-20Patch from Simon Steele to implement the hotspot style and associatednyamatongwe1-1/+2
notifications.
2003-02-09Protected style fixed in several ways.nyamatongwe1-1/+1
Method to determine cheaply if protection turned on at all. Caret movement doesn't skip over text outside protected range. Methods for deciding if a range or the selection contains protected text. Several deletion commands perform no action if they would delete protected text. Two phase drawing no longer draws invisible text.
2001-12-20Added changeable attribute to styles that defaults to true. When it isnyamatongwe1-1/+4
false, text in this style is read only.
2001-10-28Removed platform-specific headers from Platform.h and thus stoppednyamatongwe1-1/+1
visibility of these headers to most code.
2001-05-22Support for forced upper and lower case styles.nyamatongwe1-1/+5
2001-04-10Calltip size fixing and listbox border tweaking.nyamatongwe1-4/+5
2001-02-24Updated documentation comments from Philippe.nyamatongwe1-1/+5
2001-01-28Updating copyright notices for 2001.nyamatongwe1-1/+1
2000-08-16Invisible text.nyamatongwe1-1/+2
Fixes to ensure long lines do not overflow buffers.
2000-05-15Support for different character sets for each style.nyamatongwe1-1/+2
2000-05-10Added underline attribute to styles.nyamatongwe1-1/+2
Added diagonal and strike-through indicators.